Module dlangui.core.files

This module contains cross-platform file access utilities

Synopsis

import dlangui.core.files;

Functions

Name Description
appDataPath Returns application data directory
appendPath Appends file path parts with proper delimiters e.g. appendPath("/home/user", ".myapp", "config") => "/home/user/.myapp/config"
appendPath Appends file path parts with proper delimiters (as well converts delimiters inside path to system) to buffer e.g. appendPath("/home/user", ".myapp", "config") => "/home/user/.myapp/config"
convertPathDelimiters Converts path delimiters to standard for platform inplace in buffer(e.g. / to \ on windows, \ to / on posix), returns buf
convertPathDelimiters Converts path delimiters to standard for platform (e.g. / to \ on windows, \ to / on posix)
exePath Returns current executable path only, including last path delimiter - removes executable name from result of std.file.thisExePath()
filterFilename check filename with pattern
filterFilename Filters file name by pattern list
findExecutablePath for executable name w/o path, find absolute path to executable
getRootPaths returns array of system root entries
homeEntry Returns user's home directory entry
homePath Returns user's home directory
isPathDelimiter Returns true if char ch is / or \ slash
isRoot returns true if directory is root directory (e.g. / or C:\)
listDirectory List directory content
parentDir returns parent directory for specified path
splitPath

Structs

Name Description
RootEntry Filesystem root entry item

Enums

Name Description
RootEntryType Filesystem root entry / bookmark types

Enum values

Name Type Description
PATH_DELIMITER path delimiter (\ for windows, / for others)

Aliases

Name Type Description
currentDir Returns current directory

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0