Lifted createDirectory.
Moduleunliftio-0.2.25.1Haskell2010
UnliftIO.Directory
Unlifted System.Directory.
Contents
Synopsis
- value createDirectory
- value createDirectoryIfMissing
- value createFileLink
- value createDirectoryLink
- value removeDirectoryLink
- value getSymbolicLinkTarget
- value removeDirectory
- value removeDirectoryRecursive
- value removePathForcibly
- value renameDirectory
- value listDirectory
- value getDirectoryContents
- value getCurrentDirectory
- value setCurrentDirectory
- value withCurrentDirectory
- value getHomeDirectory
- data XdgDirectory
- value getXdgDirectory
- data XdgDirectoryList
- value getXdgDirectoryList
- value getAppUserDataDirectory
- value getUserDocumentsDirectory
- value getTemporaryDirectory
- value removeFile
- value renameFile
- value renamePath
- value copyFile
- value copyFileWithMetadata
- value canonicalizePath
- value makeAbsolute
- value makeRelativeToCurrentDirectory
- value findExecutable
- value findExecutables
- value findExecutablesInDirectories
- value findFile
- value findFiles
- value findFileWith
- value findFilesWith
- value exeExtension
- value getFileSize
- value doesPathExist
- value doesFileExist
- value doesDirectoryExist
- value pathIsSymbolicLink
- data Permissions
- value emptyPermissions
- value readable
- value writable
- value executable
- value searchable
- value setOwnerReadable
- value setOwnerWritable
- value setOwnerExecutable
- value setOwnerSearchable
- value getPermissions
- value setPermissions
- value copyPermissions
- value getAccessTime
- value getModificationTime
- value setAccessTime
- value setModificationTime
- Packageunliftio-0.2.25.1
- Exports61
- LanguageHaskell2010
- LicenceMIT
- SourceDirectory.hs
Actions on directories
Lifted 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
Lifted 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 systems, 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.11.0 · System.Directory.Internal.CommonEnum XdgDirectoryDefined in directory-1.3.11.0 · System.Directory.Internal.CommonEq XdgDirectoryDefined in directory-1.3.11.0 · System.Directory.Internal.CommonOrd XdgDirectoryDefined in directory-1.3.11.0 · System.Directory.Internal.CommonRead XdgDirectoryDefined in directory-1.3.11.0 · System.Directory.Internal.CommonShow XdgDirectoryDefined in directory-1.3.11.0 · 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.11.0 · System.Directory.Internal.CommonEnum XdgDirectoryListDefined in directory-1.3.11.0 · System.Directory.Internal.CommonEq XdgDirectoryListDefined in directory-1.3.11.0 · System.Directory.Internal.CommonOrd XdgDirectoryListDefined in directory-1.3.11.0 · System.Directory.Internal.CommonRead XdgDirectoryListDefined in directory-1.3.11.0 · System.Directory.Internal.CommonShow XdgDirectoryListDefined in directory-1.3.11.0 · System.Directory.Internal.Common
Lifted getXdgDirectoryList.
Lifted getAppUserDataDirectory.
Lifted getUserDocumentsDirectory.
Lifted getTemporaryDirectory.
Actions on files
Lifted 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
Lifted doesPathExist.
Lifted doesFileExist.
Lifted doesDirectoryExist.
Symbolic links
Lifted pathIsSymbolicLink.
Permissions
Instances4Eq, Ord, Read, Show
Eq PermissionsDefined in directory-1.3.11.0 · System.Directory.Internal.CommonOrd PermissionsDefined in directory-1.3.11.0 · System.Directory.Internal.CommonRead PermissionsDefined in directory-1.3.11.0 · System.Directory.Internal.CommonShow PermissionsDefined in directory-1.3.11.0 · System.Directory.Internal.Common
Lifted getPermissions.
Lifted setPermissions.
Lifted copyPermissions.
Timestamps
Lifted getAccessTime.
Lifted getModificationTime.
Lifted setAccessTime.
Lifted setModificationTime.