252int chmod(
string path, softint mode);
276int chown(
string path, softint owner = -1, softint group = -1);
327*list<string>
glob(
string glob_str);
655int lchown(
string path, softint uid = -1, softint gid = -1);
715int mkdir(
string path, softint mode = 0777,
bool parents =
False);
758int mkfifo(
string path, softint mode = 0600);
818nothing
rename(
string old_path,
string new_path);
913nothing
symlink(
string old_path,
string new_path);
const False
logical False
Definition: qc_qore.dox.h:96
date date()
This function just returns 1970-01-01Z.
bool is_executable(string path)
Returns True if the string passed identifies an executable on the filesystem, False if not.
nothing lstat()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
bool is_bdev(string path)
Returns True if the string passed identifies a block device on the filesystem, False if not.
int chmod(string path, softint mode)
Changes the mode of a file or directory.
bool is_writable(string path)
Returns True if the string passed identifies a file or a directory writable by the current user,...
nothing umask()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing glob()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
string getcwd2()
Returns a string giving the current working directory; throws an exception if the current directory c...
bool is_dir(string path)
Returns True if the string passed identifies a directory on the filesystem, False if not.
int chown(string path, softint owner=-1, softint group=-1)
Changes the user and group owners of a file, if the current user has permission to do so (normally on...
nothing unlink()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing rename(string old_path, string new_path)
Renames (or moves) files or directories. Note that for this call to function properly,...
bool is_link(string path)
Returns True if the string passed identifies a symbolic link on the filesystem, False if not.
bool is_socket(string path)
Returns True if the string passed identifies a socket on the filesystem, False if not.
bool is_cdev(string path)
Returns True if the string passed identifies a character device on the filesystem,...
int rmdir(string path)
Removes a directory.
bool is_dev(string path)
Returns True if the string passed identifies a device (either block or character) on the filesystem,...
bool absolute_path(string path)
string realpath(string path)
Returns the canonicalized absolute pathname from the given path.
string readlink(string path)
Returns the target of a symbolic link; throws an exception if an error occurs (ex: file does not exis...
bool is_file(string path)
Returns True if the string passed identifies a regular file on the filesystem, False if not.
int mkfifo(string path, softint mode=0600)
Creates a named pipe file with an optional file mode.
bool is_pipe(string path)
Returns True if the string passed identifies a pipe (FIFO) on the filesystem, False if not.
bool absolute_path_windows(string path)
returns True if the argument is a Windows absolute path, False if not
int mkdir(string path, softint mode=0777, bool parents=False)
Creates a directory, optionally specifying the mode.
*hash< FilesystemInfo > statvfs(string path)
Returns a hash of filesystem status values for the file or directory path passed.
*string getcwd()
Returns a string giving the current working directory or NOTHING if the current working directory cou...
nothing mkdir_ex(string path, softint mode=0777, bool parents=False)
Creates a directory, optionally specifying the mode; throws an exception on error.
int lchown(string path, softint uid=-1, softint gid=-1)
Changes the user and group owners of a file, if the current user has permission to do so (normally on...
bool is_writeable(string path)
Returns True if the string passed identifies a file or a directory writable by the current user (back...
nothing hlstat()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
bool absolute_path_unix(string path)
returns True if the argument is a UNIX absolute path, False if not
int chdir(string path)
Changes the current working directory for the current process.
nothing hstat()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing symlink(string old_path, string new_path)
Creates a symbolic link to a directory path. Note that for this call to function properly,...
bool is_readable(string path)
Returns True if the string passed identifies a file or a directory readable by the current user,...
nothing stat()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2
Filesystem info hash as returned by statvfs, Dir::statvfs, and ReadOnlyFile::statvfs()".
Definition: ql_file.dox.h:46
int ffree
The total number of free inodes available to privileged users.
Definition: ql_file.dox.h:58
int files
The total number of inodes on the filesystem.
Definition: ql_file.dox.h:60
int fsid
The filesystem ID; may not be set or meaningful on all filesystems/systems: see system documentation ...
Definition: ql_file.dox.h:64
int bsize
The filesystem's block size.
Definition: ql_file.dox.h:54
int blocks
The total number of blocks on the filesystem (capacity in bytes = bsize * blocks)
Definition: ql_file.dox.h:52
int namemax
The maximum length in bytes of file names on the filesystem.
Definition: ql_file.dox.h:66
int favail
The number of free inodes available to unprivileged users.
Definition: ql_file.dox.h:56
int bavail
The number of free blocks available to unprivileged users (bytes = bsize * bavail)
Definition: ql_file.dox.h:48
int bfree
The total number of free indes available to privileged users (bytes = bsize * bfree)
Definition: ql_file.dox.h:50
int frsize
The size in bytes of the minimum allocation unit on the filesystem.
Definition: ql_file.dox.h:62
file status information hash as returned from hstat(), hlstat(), Dir::hstat(), FileLineIterator::hsta...
Definition: ql_file.dox.h:7
string type
a string giving the file type; one of: - "BLOCK-DEVICE" - "DIRECTORY" - "CHARACTER-DEVICE" - "...
Definition: ql_file.dox.h:35
date ctime
last change time of the file's inode
Definition: ql_file.dox.h:15
int nlink
number of hard links to this file
Definition: ql_file.dox.h:27
int uid
user ID of the owner
Definition: ql_file.dox.h:37
int rdev
device type number
Definition: ql_file.dox.h:31
int size
file size in bytes
Definition: ql_file.dox.h:33
date mtime
last modified time of the file
Definition: ql_file.dox.h:25
string perm
a string giving UNIX-style permissions for the file (ex: "-rwxr-xr-x")
Definition: ql_file.dox.h:29
int inode
inode of the file
Definition: ql_file.dox.h:21
int blksize
block size; may be zero if the platform's internal stat() (2) function does not provide this info
Definition: ql_file.dox.h:11
int gid
group ID of the owner
Definition: ql_file.dox.h:19
int dev
device inode number the file is on
Definition: ql_file.dox.h:17
int mode
inode protection mode
Definition: ql_file.dox.h:23
date atime
last access time of the file
Definition: ql_file.dox.h:9
int blocks
blocks allocated for the file; may be zero if the platform's internal stat() (2) function does not pr...
Definition: ql_file.dox.h:13