FileSystem (struct)¶
バージョン 1.12.0 で追加.
The FileSystem maps closely to the boost::filesystem static methods. Please see the boost documentation for each of the methods.
http://www.boost.org/doc/libs/1_55_0/libs/filesystem/doc/operations.htm
Methods¶
FileSystem ( in FileSystem other ) | |
FileSystem () | |
FilePath | absolute ? ( in FilePath p ) |
FilePath | canonical ? ( in FilePath p ) |
FileSystem | clone ? () |
copyFile ? ( in FilePath a, in FilePath b ) | |
Boolean | createDirectories ? ( in FilePath p ) |
Boolean | createDirectory ? ( in FilePath p ) |
createDirectorySymlink ? ( in FilePath directory, in FilePath symlink ) | |
createFileSymlink ? ( in FilePath file, in FilePath symlink ) | |
FilePath | currentPath ? () |
Boolean | equivalent ? ( in FilePath a, in FilePath b ) |
Boolean | exists ? ( in FilePath p ) |
Size | fileSize ? ( in FilePath p ) |
Boolean | isDirectory ? ( in FilePath p ) |
Boolean | isRegularFile ? ( in FilePath p ) |
Boolean | isSymlink ? ( in FilePath p ) |
FilePath | readSymlink ? ( in FilePath p ) |
Boolean | remove ? ( in FilePath p ) |
Boolean | removeAll ? ( in FilePath p ) |
rename ? ( in FilePath a, in FilePath b ) | |
FilePath | tempDirectoryPath ? () |
FilePath | uniquePath ? () |
Methods in detail¶
FileSystem ( in FileSystem other )
copy constructor
FileSystem ()
default constructor
FilePath FileSystem.absolute? ( in FilePath p )
returns the absolute path of the given path
FilePath FileSystem.canonical? ( in FilePath p )
returns the canonical path of the given path
FileSystem FileSystem.clone? ()
clone method
FileSystem.copyFile? ( in FilePath a, in FilePath b )
copies a file from the given path to another one
Boolean FileSystem.createDirectories? ( in FilePath p )
create all missing directories as specified by the path
Boolean FileSystem.createDirectory? ( in FilePath p )
creates the leaf directory specified by the path
FileSystem.createDirectorySymlink? ( in FilePath directory, in FilePath symlink )
creates a directory symlink
FileSystem.createFileSymlink? ( in FilePath file, in FilePath symlink )
creates a file symlink
FilePath FileSystem.currentPath? ()
returns the current path of the filesystem
Boolean FileSystem.equivalent? ( in FilePath a, in FilePath b )
returns true if two paths resolve to the same file / directory
Boolean FileSystem.exists? ( in FilePath p )
returns true if a given path exists
Size FileSystem.fileSize? ( in FilePath p )
returns the size of a file
Boolean FileSystem.isDirectory? ( in FilePath p )
returns true if a path is a directory
Boolean FileSystem.isRegularFile? ( in FilePath p )
returns true if a path is a regular file
Boolean FileSystem.isSymlink? ( in FilePath p )
returns true if a path is a symbolic link
FilePath FileSystem.readSymlink? ( in FilePath p )
returns the real value of a symlink
Boolean FileSystem.remove? ( in FilePath p )
removes an existing file / directory
Boolean FileSystem.removeAll? ( in FilePath p )
removes all contents of an existing file / directory
FileSystem.rename? ( in FilePath a, in FilePath b )
renames a path to another one (moves a file as well)
FilePath FileSystem.tempDirectoryPath? ()
returns the path of the temp directory
FilePath FileSystem.uniquePath? ()
returns a new, unique path in the temp directory