Lifted createDirectory.
- Packageunliftio-0.2.25.1
- Exports61
- LanguageHaskell2010
- LicenceMIT
- SourceDirectory.hs
Actions on directories
12 declarationsLifted createDirectoryIfMissing.
createFileLink Lifted createFileLink. directory package version should be >= 1.3.1. @since 0.2.16.0
Lifted createDirectoryLink.
Lifted removeDirectoryLink.
Lifted getSymbolicLinkTarget.
Lifted removeDirectory.
Lifted removeDirectoryRecursive.
Lifted removePathForcibly.
Lifted renameDirectory.
Lifted listDirectory.
Lifted getDirectoryContents.
Current working directory
Lifted getCurrentDirectory.
Lifted setCurrentDirectory.
Unlifted withCurrentDirectory.
Pre-defined directories
8 declarationsLifted getHomeDirectory.
Special directories for storing user-specific application data, configuration, and cache files, as specified by the XDG Base Directory Specification.
Note: On Windows, XdgData and XdgConfig usually map to the same directory.
Constructors
XdgDataFor data files (e.g. images). It uses the
XDG_DATA_HOMEenvironment variable. On non-Windows systems, the default is~/.local/share. On Windows, the default is%APPDATA%(e.g.C:/Users/<user>/AppData/Roaming). Can be considered as the user-specific equivalent of/usr/share.XdgConfigFor configuration files. It uses the
XDG_CONFIG_HOMEenvironment variable. On non-Windows systems, the default is~/.config. On Windows, the default is%APPDATA%(e.g.C:/Users/<user>/AppData/Roaming). Can be considered as the user-specific equivalent of/etc.XdgCacheFor non-essential files (e.g. cache). It uses the
XDG_CACHE_HOMEenvironment variable. On non-Windows systems, the default is~/.cache. On Windows, the default is%LOCALAPPDATA%(e.g.C:/Users/<user>/AppData/Local). Can be considered as the user-specific equivalent of/var/cache.XdgStateFor data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in XdgData. It uses the
XDG_STATE_HOMEenvironment variable. On non-Windows sytems, the default is~/.local/state. On Windows, the default is%LOCALAPPDATA%(e.g.C:/Users/<user>/AppData/Local).
Instances6Bounded, Enum, Eq, Ord, Read, Show
Bounded XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonEnum XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonEq XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonOrd XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonRead XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonShow XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.Common
Lifted getXdgDirectory.
Search paths for various application data, as specified by the XDG Base Directory Specification.
The list of paths is split using System.FilePath.searchPathSeparator,
which on Windows is a semicolon.
Note: On Windows, XdgDataDirs and XdgConfigDirs usually yield the same result.
Constructors
XdgDataDirsFor data files (e.g. images). It uses the
XDG_DATA_DIRSenvironment variable. On non-Windows systems, the default is/usr/local/share/and/usr/share/. On Windows, the default is%PROGRAMDATA%or%ALLUSERSPROFILE%(e.g.C:/ProgramData).XdgConfigDirsFor configuration files. It uses the
XDG_CONFIG_DIRSenvironment variable. On non-Windows systems, the default is/etc/xdg. On Windows, the default is%PROGRAMDATA%or%ALLUSERSPROFILE%(e.g.C:/ProgramData).
Instances6Bounded, Enum, Eq, Ord, Read, Show
Bounded XdgDirectoryListDefined in directory-1.3.8.5 · System.Directory.Internal.CommonEnum XdgDirectoryListDefined in directory-1.3.8.5 · System.Directory.Internal.CommonEq XdgDirectoryListDefined in directory-1.3.8.5 · System.Directory.Internal.CommonOrd XdgDirectoryListDefined in directory-1.3.8.5 · System.Directory.Internal.CommonRead XdgDirectoryListDefined in directory-1.3.8.5 · System.Directory.Internal.CommonShow XdgDirectoryListDefined in directory-1.3.8.5 · System.Directory.Internal.Common
Lifted getXdgDirectoryList.
Lifted getAppUserDataDirectory.
Lifted getUserDocumentsDirectory.
Lifted getTemporaryDirectory.
Actions on files
17 declarationsLifted removeFile.
Lifted renameFile.
Lifted renamePath.
Lifted copyFile.
Lifted copyFileWithMetadata.
Lifted canonicalizePath.
Lifted makeAbsolute.
Lifted makeRelativeToCurrentDirectory.
Lifted findExecutable.
Lifted findExecutables.
Lifted findExecutablesInDirectories.
Lifted findFile.
Lifted findFiles.
Unlifted findFileWith.
Unlifted findFilesWith.
Filename extension for executable files (including the dot if any)
(usually "" on POSIX systems and ".exe" on Windows or OS/2).
Lifted getFileSize.
Existence tests
3 declarationsLifted doesPathExist.
Lifted doesFileExist.
Lifted doesDirectoryExist.
Symbolic links
1 declarationLifted pathIsSymbolicLink.
Permissions
13 declarationsInstances4Eq, Ord, Read, Show
Eq PermissionsDefined in directory-1.3.8.5 · System.Directory.Internal.CommonOrd PermissionsDefined in directory-1.3.8.5 · System.Directory.Internal.CommonRead PermissionsDefined in directory-1.3.8.5 · System.Directory.Internal.CommonShow PermissionsDefined in directory-1.3.8.5 · System.Directory.Internal.Common
Lifted getPermissions.
Lifted setPermissions.
Lifted copyPermissions.
Timestamps
4 declarationsLifted getAccessTime.
Lifted getModificationTime.
Lifted setAccessTime.
Lifted setModificationTime.