Qore Programming Language Reference Manual  0.8.12.3
ql_file.dox.h
1 
3 namespace Qore {
223 
225 
243 bool absolute_path(string path);
244 
246 
264 bool absolute_path_unix(string path);
265 
267 
285 bool absolute_path_windows(string path);
286 
288 
303 int chdir(string path);
304 
306 
320 int chmod(string path, softint mode);
321 
323 
343 int chown(string path, softint owner = -1, softint group = -1);
344 
346 
361 *string getcwd();
362 
364 
377 string getcwd2();
378 
380 
394 *list glob(string glob_str);
395 
397 
404 nothing glob();
405 
407 
425 *hash hlstat(string path);
426 
428 
435 nothing hlstat();
436 
438 
456 *hash hstat(string path);
457 
459 
466 nothing hstat();
467 
469 
484 bool is_bdev(string path);
485 
487 
502 bool is_cdev(string path);
503 
505 
520 bool is_dev(string path);
521 
523 
538 bool is_dir(string path);
539 
541 
559 bool is_executable(string path);
560 
562 
577 bool is_file(string path);
578 
580 
598 bool is_link(string path);
599 
601 
616 bool is_pipe(string path);
617 
619 
634 bool is_readable(string path);
635 
637 
655 bool is_socket(string path);
656 
658 
675 bool is_writable(string path);
676 
678 
695 bool is_writeable(string path);
696 
698 
718 int lchown(string path, softint uid = -1, softint gid = -1);
719 
721 
740 *list lstat(string path);
741 
743 
750 nothing lstat();
751 
753 
769 int mkdir(string path, softint mode = 0777);
770 
772 
789 int mkfifo(string path, softint mode = 0600);
790 
792 
809 string readlink(string path);
810 
812 
828 string realpath(string path);
829 
831 
848 nothing rename(string old_path, string new_path);
849 
851 
866 int rmdir(string path);
867 
869 
887 *list stat(string path);
888 
890 
897 nothing stat();
898 
900 
917 *hash statvfs(string path);
918 
920 
941 nothing symlink(string old_path, string new_path);
942 
944 
957 int umask(softint mask);
958 
960 
967 nothing umask();
968 
970 
985 int unlink(string path);
986 
988 
995 nothing unlink();
996 
998 };
nothing rename(string old_path, string new_path)
Renames (or moves) files or directories. Note that for this call to function properly, the Qore process must have sufficient permissions and access to the given filesystem objects or paths to execute the rename operation.
bool is_link(string path)
Returns True if the string passed identifies a symbolic link on the filesystem, False if not...
string realpath(string path)
Returns the canonicalized absolute pathname from the given path.
*list stat(string path)
Returns a list of file status values for the path argument, following any symbolic links; if any erro...
string readlink(string path)
Returns the target of a symbolic link; throws an exception if an error occurs (ex: file does not exis...
int chmod(string path, softint mode)
Changes the mode of a file or directory.
bool is_dev(string path)
Returns True if the string passed identifies a device (either block or character) on the filesystem...
bool is_pipe(string path)
Returns True if the string passed identifies a pipe (FIFO) on the filesystem, False if not...
*string getcwd()
Returns a string giving the current working directory or NOTHING if the current working directory cou...
int unlink(string path)
Deletes a file and returns 0 for success, -1 for error (in which case errno() can be used to get the ...
bool is_cdev(string path)
Returns True if the string passed identifies a character device on the filesystem, False if not.
bool absolute_path_unix(string path)
returns True if the argument is a UNIX absolute path, False if not
list list(...)
Returns a list of the arguments passed at the top level.
nothing symlink(string old_path, string new_path)
Creates a symbolic link to a directory path. Note that for this call to function properly, the Qore process must have sufficient permissions and access to the given filesystem path to create the symbolic link.
int mkdir(string path, softint mode=0777)
Creates a directory, optionally specifying the mode.
*hash statvfs(string path)
Returns a hash of filesystem status values for the file or directory path passed. ...
int umask(softint mask)
Sets the file creation mode mask for the process and returns the previous value of the file creation ...
bool is_executable(string path)
Returns True if the string passed identifies an executable on the filesystem, False if not...
*hash hlstat(string path)
Returns a hash of file status values for the path argument and does not follow symbolic links; if any...
bool is_dir(string path)
Returns True if the string passed identifies a directory 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...
*hash hstat(string path)
Returns a hash of file status values for the path argument, following any symbolic links; if any erro...
int chdir(string path)
Changes the current working directory for the current process.
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_readable(string path)
Returns True if the string passed identifies a file or a directory readable by the current user...
*list lstat(string path)
Returns a list of file status values for the path argument and does not follow symbolic links; if any...
int rmdir(string path)
Removes a directory.
*list glob(string glob_str)
Returns a list of files matching the string argument or NOTHING if the call to glob() fails...
int mkfifo(string path, softint mode=0600)
Creates a named pipe file with an optional file mode.
bool is_writable(string path)
Returns True if the string passed identifies a file or a directory writable by the current user...
bool is_file(string path)
Returns True if the string passed identifies a regular file on the filesystem, False if not...
bool is_bdev(string path)
Returns True if the string passed identifies a block device 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...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
bool is_writeable(string path)
Returns True if the string passed identifies a file or a directory writable by the current user (back...
bool absolute_path_windows(string path)
returns True if the argument is a Windows absolute path, False if not
hash hash(object obj)
Returns a hash of an object's members.
string getcwd2()
Returns a string giving the current working directory; throws an exception if the current directory c...
bool absolute_path(string path)
returns True if the argument is an absolute path on the current platform, False if not ...