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) |
currentDir
|
Returns current directory |
exePath
|
Returns current executable path only, including last path delimiter - removes executable name from result of std.file.thisExePath() |
filterFilename
|
check filename with pattern (currently only *.ext pattern is supported)
|
filterFilename
|
Filters file name by pattern list |
getRootPaths
|
returns array of system root entries |
homeEntry
|
Returns |
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
|
Split path into elements, e.g. /home/user/dir1 -> ["home", "user", "dir1"], "c:\dir1\dir2" -> ["c:", "dir1", "dir2"]
|
Structs
Name | Description |
---|---|
RootEntry
|
Filesystem root entry item |
Enums
Name | Description |
---|---|
RootEntryType
|
Filesystem root entry / bookmark types |
Global variables
Name | Type | Description |
---|---|---|
PATH_DELIMITER
|
immutable(char)
|
path delimiter (\ for windows, / for others) |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0