Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
ql_file.dox.h
1
3 namespace Qore {
223
225
240 int chdir(string path);
241
243
257 int chmod(string path, softint mode);
258
260
280 int chown(string path, softint owner = -1, softint group = -1);
281
283
298 string getcwd();
299
301
314 string getcwd2();
315
317
331 *list glob(string glob_str);
332
334
341 nothing glob();
342
344
362 *hash hlstat(string path);
363
365
372 nothing hlstat();
373
375
393 *hash hstat(string path);
394
396
403 nothing hstat();
404
406
421 bool is_bdev(string path);
422
424
439 bool is_cdev(string path);
440
442
457 bool is_dev(string path);
458
460
475 bool is_dir(string path);
476
478
496 bool is_executable(string path);
497
499
514 bool is_file(string path);
515
517
535 bool is_link(string path);
536
538
553 bool is_pipe(string path);
554
556
573 bool is_readable(string path);
574
576
594 bool is_socket(string path);
595
597
614 bool is_writable(string path);
615
617
632 bool is_writeable(string path);
633
635
655 int lchown(string path, softint uid = -1, softint gid = -1);
656
658
677 *list lstat(string path);
678
680
687 nothing lstat();
688
690
706 int mkdir(string path, softint mode = 0777);
707
709
726 int mkfifo(string path, softint mode = 0600);
727
729
746 string readlink(string path);
747
749
766 nothing rename(string old_path, string new_path);
767
769
782 int rmdir(string path);
783
785
803 *list stat(string path);
804
806
813 nothing stat();
814
816
833 *hash statvfs(string path);
834
836
857 nothing symlink(string old_path, string new_path);
858
860
873 int umask(softint mask);
874
876
883 nothing umask();
884
886
901 int unlink(string path);
902
904
911 nothing unlink();
912
914 };
Qore::rename
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.
Qore::is_link
bool is_link(string path)
Returns True if the string passed identifies a symbolic link on the filesystem, False if not...
Qore::stat
*list stat(string path)
Returns a list of file status values for the path argument, following any symbolic links; if any erro...
Qore::readlink
string readlink(string path)
Returns the target of a symbolic link; throws an exception if an error occurs (ex: file does not exis...
Qore::chmod
int chmod(string path, softint mode)
Changes the mode of a file or directory.
Qore::is_dev
bool is_dev(string path)
Returns True if the string passed identifies a device (either block or character) on the filesystem...
Qore::is_pipe
bool is_pipe(string path)
Returns True if the string passed identifies a pipe (FIFO) on the filesystem, False if not...
Qore::getcwd
string getcwd()
Returns a string giving the current working directory or NOTHING if the current working directory cou...
Qore::unlink
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 ...
Qore::is_cdev
bool is_cdev(string path)
Returns True if the string passed identifies a character device on the filesystem, False if not.
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
Qore::symlink
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.
Qore::mkdir
int mkdir(string path, softint mode=0777)
Creates a directory, optionally specifying the mode.
Qore::statvfs
*hash statvfs(string path)
Returns a hash of filesystem status values for the file or directory path passed. ...
Qore::umask
int umask(softint mask)
Sets the file creation mode mask for the process and returns the previous value of the file creation ...
Qore::is_executable
bool is_executable(string path)
Returns True if the string passed identifies an executable on the filesystem, False if not...
Qore::hlstat
*hash hlstat(string path)
Returns a hash of file status values for the path argument and does not follow symbolic links; if any...
Qore::is_dir
bool is_dir(string path)
Returns True if the string passed identifies a directory on the filesystem, False if not...
Qore::is_socket
bool is_socket(string path)
Returns True if the string passed identifies a socket on the filesystem, False if not...
Qore::hstat
*hash hstat(string path)
Returns a hash of file status values for the path argument, following any symbolic links; if any erro...
Qore::chdir
int chdir(string path)
Changes the current working directory for the current process.
Qore::lchown
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...
Qore::is_readable
bool is_readable(string path)
Returns True if the string passed identifies a file readable by the current user, False if not...
Qore::lstat
*list lstat(string path)
Returns a list of file status values for the path argument and does not follow symbolic links; if any...
Qore::rmdir
int rmdir(string path)
Removes a directory.
Qore::glob
*list glob(string glob_str)
Returns a list of files matching the string argument or NOTHING if the call to glob() fails...
Qore::mkfifo
int mkfifo(string path, softint mode=0600)
Creates a named pipe file with an optional file mode.
Qore::is_writable
bool is_writable(string path)
Returns True if the string passed identifies a file writable by the current user, False if not...
Qore::is_file
bool is_file(string path)
Returns True if the string passed identifies a regular file on the filesystem, False if not...
Qore::is_bdev
bool is_bdev(string path)
Returns True if the string passed identifies a block device on the filesystem, False if not...
Qore::chown
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...
Qore::is_writeable
bool is_writeable(string path)
Returns True if the string passed identifies a file writable by the current user (backwards-compatibl...
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::getcwd2
string getcwd2()
Returns a string giving the current working directory; throws an exception if the current directory c...