107         string joinPaths(list<string> paths);
 
  111         abstract 
string joinPathsIntern(list<string> paths);
 
  231    const TMP_MAX_ATTEMPTS = 10000;
 
  250    public hashdecl TmpFileHash {
 
  252        File file = 
new File();
 
  270     hash<TmpFileHash> 
make_tmp_file(*
string prefix, *
string suffix, *
string path);
 
  368     bool same_file_stat(*hash<StatInfo> stat1, *hash<StatInfo> stat2, 
bool ignore_errors = True);
 
  388     bool same_file(
string path1, 
string path2, 
bool follow_symlinks = True, 
bool ignore_errors = True);
 
  424    string copy_tree_internal(
string source, 
string destination, 
bool follow_symlinks = False, 
bool overwrite = False, 
bool merge = False, 
bool fail_immediately = True, *
int depth);
 
  455     string copy_file(
string source, 
string destination, 
bool follow_symlinks = False, 
bool overwrite = False);
 
  480     string copy_tree(
string source, 
string destination, 
bool follow_symlinks = False, 
bool overwrite = False, 
bool fail_immediately = True);
 
  507     string copy_path(
string source, 
string destination, 
bool follow_symlinks = False, 
bool overwrite = False,  
bool fail_immediately = True, *
int depth);
 
  531     string merge_tree(
string source, 
string destination, 
bool follow_symlinks = False, 
bool overwrite = False, 
bool fail_immediately = True, *
int depth);
 
  549     string move_path(
string source, 
string destination, 
bool overwrite = False);
 
  570     string merge_path(
string source, 
string destination, 
bool follow_symlinks = False, 
bool overwrite = False, 
bool fail_immediately = True, *
int depth);
 
generic path handler implementing functionality common for both platforms
Definition: FsUtil.qm.dox.h:101
 
list< string > delimiters
path delimiters - to be set by platform specific path handlers
Definition: FsUtil.qm.dox.h:105
 
path handler implementing POSIX specific functionality
Definition: FsUtil.qm.dox.h:147
 
string joinPathsIntern(list< string > paths)
Returns the path resulting from joining the given paths.
 
constructor()
creates the object and sets the delimiter
 
Class implementing a user friendly temporary directory creation.
Definition: FsUtil.qm.dox.h:278
 
string path
The path to the temporary directory created in the constructor.
Definition: FsUtil.qm.dox.h:282
 
constructor(*string prefix, *string suffix, *string path)
Creates a unique temporary directory and returns its absolute path.
 
Class implementing a user friendly temporary file creation; the file is removed in the destructor.
Definition: FsUtil.qm.dox.h:297
 
constructor(*string prefix, *string suffix, *string path)
Creates and opens a unique temporary file and returns its absolute path as well as its File object.
 
path handler implementing Windows specific functionality
Definition: FsUtil.qm.dox.h:116
 
constructor()
creates the object and sets the delimiter
 
string joinPathsIntern(list< string > paths)
Returns the path resulting from joining the given paths.
 
list< string > splitDrive(string path)
separates and returns the drive and the rest of the path
 
the FsUtil namespace contains all the objects in the FsUtil module
Definition: FsUtil.qm.dox.h:96
 
string copy_path(string source, string destination, bool follow_symlinks=False, bool overwrite=False, bool fail_immediately=True, *int depth)
Universal copy function.
 
bool same_file_stat(*hash< StatInfo > stat1, *hash< StatInfo > stat2, bool ignore_errors=True)
Checks whether two stat hashes point to the same file or not.
 
bool same_file(string path1, string path2, bool follow_symlinks=True, bool ignore_errors=True)
Checks whether two paths point to the same file/directory or not.
 
remove_path(string path)
Universal remove function.
 
string copy_file(string source, string destination, bool follow_symlinks=False, bool overwrite=False)
Copies a file (regular or symlink) from source to destination.
 
copy_file_obj(File source, File destination, bool close=False, int buf_size=DefaultBufferSize)
Copies a file object data from source to destination.
 
string copy_dir_structure(string source, string destination, *int depth)
Copies a structure of directories, files are ignored.
 
string move_path(string source, string destination, bool overwrite=False)
Moves a path from source to destination.
 
hash< TmpFileHash > make_tmp_file(*string prefix, *string suffix, *string path)
Creates and opens a unique temporary file and returns its absolute path as well as its File object.
 
string merge_tree(string source, string destination, bool follow_symlinks=False, bool overwrite=False, bool fail_immediately=True, *int depth)
Merges a copy of the source directory tree to the destination directory tree.
 
string join_paths()
Returns the path resulting from joining the given paths.
 
bool path_exists(string path, bool follow_symlinks=False)
Check whether the given path exists or not.
 
string make_tmp_dir(*string prefix, *string suffix, *string path)
Creates a unique temporary directory and returns its absolute path.
 
remove_tree(string path, bool fail_immediately=True)
Removes the filesystem tree specified by path.
 
string merge_path(string source, string destination, bool follow_symlinks=False, bool overwrite=False, bool fail_immediately=True, *int depth)
Universal merge function.
 
remove_file(string path)
Removes a regular file or symlink specified by path.
 
string copy_tree(string source, string destination, bool follow_symlinks=False, bool overwrite=False, bool fail_immediately=True)
Copies a directory tree from source to destination.
 
string copy_tree_internal(string source, string destination, bool follow_symlinks=False, bool overwrite=False, bool merge=False, bool fail_immediately=True, *int depth)
Private internal copy tree function implementation.
 
string basename_ext(string path, *string extension)
this function returns the segment of given path after the last delimiter
 
const DefaultBufferSize
Default file block buffer size.
Definition: FsUtil.qm.dox.h:98