Qore Programming Language Reference Manual  0.9.10
ql_file.dox.h
1 
3 namespace Qore {
5 
7 struct StatInfo {
11  int blksize;
13  int blocks;
17  int dev;
19  int gid;
21  int inode;
23  int mode;
27  int nlink;
29  string perm;
31  int rdev;
33  int size;
35  string type;
37  int uid;
38 };
39 }
40 
42 namespace Qore {
44 
48  int bavail;
50  int bfree;
52  int blocks;
54  int bsize;
56  int favail;
58  int ffree;
60  int files;
62  int frsize;
64  int fsid;
66  int namemax;
67 };
68 }
69 
71 namespace Qore {
155 @{
157 
175 bool absolute_path(string path);
176 
178 
196 bool absolute_path_unix(string path);
197 
199 
217 bool absolute_path_windows(string path);
218 
220 
235 int chdir(string path);
236 
238 
252 int chmod(string path, softint mode);
253 
255 
276 int chown(string path, softint owner = -1, softint group = -1);
277 
279 
294 *string getcwd();
295 
297 
310 string getcwd2();
311 
313 
327 *list<string> glob(string glob_str);
328 
330 
337 nothing glob();
338 
340 
358 *hash<StatInfo> hlstat(string path);
359 
361 
368 nothing hlstat();
369 
371 
389 *hash<StatInfo> hstat(string path);
390 
392 
399 nothing hstat();
400 
402 
417 bool is_bdev(string path);
418 
420 
435 bool is_cdev(string path);
436 
438 
453 bool is_dev(string path);
454 
456 
471 bool is_dir(string path);
472 
474 
493 bool is_executable(string path);
494 
496 
511 bool is_file(string path);
512 
514 
533 bool is_link(string path);
534 
536 
551 bool is_pipe(string path);
552 
554 
569 bool is_readable(string path);
570 
572 
591 bool is_socket(string path);
592 
594 
611 bool is_writable(string path);
612 
614 
631 bool is_writeable(string path);
632 
634 
655 int lchown(string path, softint uid = -1, softint gid = -1);
656 
658 
677 *list<auto> lstat(string path);
678 
680 
687 nothing lstat();
688 
690 
715 int mkdir(string path, softint mode = 0777, bool parents = False);
716 
718 
737 nothing mkdir_ex(string path, softint mode = 0777, bool parents = False);
738 
740 
758 int mkfifo(string path, softint mode = 0600);
759 
761 
779 string readlink(string path);
780 
782 
798 string realpath(string path);
799 
801 
818 nothing rename(string old_path, string new_path);
819 
821 
836 int rmdir(string path);
837 
839 
857 *list<auto> stat(string path);
858 
860 
867 nothing stat();
868 
870 
888 *hash<FilesystemInfo> statvfs(string path);
889 
891 
913 nothing symlink(string old_path, string new_path);
914 
916 
929 int umask(softint mask);
930 
932 
939 nothing umask();
940 
942 
957 int unlink(string path);
958 
960 
967 nothing unlink();
968 
970 }
Qore::StatInfo::inode
int inode
inode of the file
Definition: ql_file.dox.h:21
Qore::StatInfo::ctime
date ctime
last change time of the file's inode
Definition: ql_file.dox.h:15
Qore::FilesystemInfo::fsid
int fsid
The filesystem ID; may not be set or meaningful on all filesystems/systems: see system documentation ...
Definition: ql_file.dox.h:64
Qore::StatInfo::mtime
date mtime
last modified time of the file
Definition: ql_file.dox.h:25
Qore::FilesystemInfo::namemax
int namemax
The maximum length in bytes of file names on the filesystem.
Definition: ql_file.dox.h:66
Qore::FilesystemInfo::frsize
int frsize
The size in bytes of the minimum allocation unit on the filesystem.
Definition: ql_file.dox.h:62
Qore::StatInfo::atime
date atime
last access time of the file
Definition: ql_file.dox.h:9
Qore::FilesystemInfo::ffree
int ffree
The total number of free inodes available to privileged users.
Definition: ql_file.dox.h:58
Qore::FilesystemInfo::favail
int favail
The number of free inodes available to unprivileged users.
Definition: ql_file.dox.h:56
Qore::StatInfo
file status information hash as returned from hstat(), hlstat(), Dir::hstat(), FileLineIterator::hsta...
Definition: ql_file.dox.h:7
Qore::FilesystemInfo::files
int files
The total number of inodes on the filesystem.
Definition: ql_file.dox.h:60
Qore::StatInfo::size
int size
file size in bytes
Definition: ql_file.dox.h:33
Qore::FilesystemInfo
Filesystem info hash as returned by statvfs, Dir::statvfs, and ReadOnlyFile::statvfs()".
Definition: ql_file.dox.h:46
Qore::FilesystemInfo::bfree
int bfree
The total number of free indes available to privileged users (bytes = bsize * bfree)
Definition: ql_file.dox.h:50
Qore::StatInfo::mode
int mode
inode protection mode
Definition: ql_file.dox.h:23
Qore::StatInfo::uid
int uid
user ID of the owner
Definition: ql_file.dox.h:37
Qore::StatInfo::blocks
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
Qore::StatInfo::rdev
int rdev
device type number
Definition: ql_file.dox.h:31
Qore::StatInfo::nlink
int nlink
number of hard links to this file
Definition: ql_file.dox.h:27
Qore::False
const False
logical False
Definition: qc_qore.dox.h:96
Qore::StatInfo::type
string type
a string giving the file type; one of: - "BLOCK-DEVICE" - "DIRECTORY" - "CHARACTER-DEVICE" - "...
Definition: ql_file.dox.h:35
Qore::FilesystemInfo::blocks
int blocks
The total number of blocks on the filesystem (capacity in bytes = bsize * blocks)
Definition: ql_file.dox.h:52
Qore::date
date date(date dt)
Returns the date passed.
Qore::FilesystemInfo::bsize
int bsize
The filesystem's block size.
Definition: ql_file.dox.h:54
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::FilesystemInfo::bavail
int bavail
The number of free blocks available to unprivileged users (bytes = bsize * bavail)
Definition: ql_file.dox.h:48
Qore::StatInfo::gid
int gid
group ID of the owner
Definition: ql_file.dox.h:19
Qore::StatInfo::dev
int dev
device inode number the file is on
Definition: ql_file.dox.h:17
Qore::StatInfo::perm
string perm
a string giving UNIX-style permissions for the file (ex: "-rwxr-xr-x")
Definition: ql_file.dox.h:29
Qore::StatInfo::blksize
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