úÎcÜWò°      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯SafeReturns True if posix-paths was compiled with support for the provided flag. (As of this writing, the only flag for which this check may be necessary is $; all other flags will always yield True.) O_CLOEXEC0 is not supported on every POSIX platform. Use  oCloexec to determine if support for  O_CLOEXEC@ was compiled into your version of posix-paths. (If not, using oCloexec will throw an exception.)        © 2016 Julian OspaldGPL-2"Julian Ospald <hasufell@posteo.de> experimentalportableSafe{If the value of the first argument is True, then execute the action provided in the second argument, otherwise do nothing. |If the value of the first argument is False, then execute the action provided in the second argument, otherwise do nothing.    © 2016 Julian OspaldBSD3"Julian Ospald <hasufell@posteo.de> experimentalportableSafeF+!Path separator character"*Check if a character is the path separator+\n -> (_chr n == '/') == isPathSeparator n#Search path separator$1Check if a character is the search path separator0\n -> (_chr n == ':') == isSearchPathSeparator n%File extension separator&4Check if a character is the file extension separator)\n -> (_chr n == '.') == isExtSeparator n'Split a °# into a path+filename and extensionsplitExtension "file.exe"("file",".exe")splitExtension "file" ("file","")"splitExtension "/path/file.tar.gz"("/path/file.tar",".gz"):\path -> uncurry (BS.append) (splitExtension path) == path(Get the final extension from a °takeExtension "file.exe"".exe"takeExtension "file"""!takeExtension "/path/file.tar.gz"".gz")Change a file's extensionJ\path -> let ext = takeExtension path in replaceExtension path ext == path* Drop the final extension from a °dropExtension "file.exe""file"dropExtension "file""file"!dropExtension "/path/file.tar.gz""/path/file.tar"+Add an extension to a °addExtension "file" ".exe" "file.exe"addExtension "file.tar" ".gz" "file.tar.gz"addExtension "/path/" ".ext" "/path/.ext",Operator version of +- Check if a ° has an extensionhasExtension "file"FalsehasExtension "file.tar"TruehasExtension "/path.part1/"False.Split a ° on the first extension#splitExtensions "/path/file.tar.gz"("/path/file",".tar.gz")<\path -> uncurry addExtension (splitExtensions path) == path/Remove all extensions from a °"dropExtensions "/path/file.tar.gz" "/path/file"0Take all extensions from a °"takeExtensions "/path/file.tar.gz" ".tar.gz"1Split a ° into (path,file). 9 is the inversesplitFileName "path/file.txt"("path/","file.txt")splitFileName "path/" ("path/","")splitFileName "file.txt"("./","file.txt")Y\path -> uncurry combine (splitFileName path) == path || fst (splitFileName path) == "./"2Get the file nametakeFileName "path/file.txt" "file.txt"takeFileName "path/"""3Change the file name9\path -> replaceFileName path (takeFileName path) == path4Drop the file namedropFileName "path/file.txt""path/"dropFileName "file.txt""./"5/Get the file name, without a trailing extensiontakeBaseName "path/file.tar.gz" "file.tar"takeBaseName """"6Change the base name(replaceBaseName "path/file.tar.gz" "bob" "path/bob.gz"9\path -> replaceBaseName path (takeBaseName path) == path7BGet the directory, moving up one level if it's already a directorytakeDirectory "path/file.txt""path"takeDirectory "file""."takeDirectory "/path/to/" "/path/to"takeDirectory "/path/to""/path"8$Change the directory component of a °e\path -> replaceDirectory path (takeDirectory path) `equalFilePath` path || takeDirectory path == "."9Join two paths togethercombine "/" "file""/file"combine "/path/to" "file""/path/to/file"combine "file" "/absolute/path""/absolute/path":Operator version of combine;'Split a path into a list of components:splitPath "/path/to/file.txt"["/","path/","to/","file.txt"]+\path -> BS.concat (splitPath path) == path<Like ;, but without trailing slashes$splitDirectories "/path/to/file.txt"["/","path","to","file.txt"]splitDirectories ""[]=Join a split path back together*\path -> joinPath (splitPath path) == path!joinPath ["path","to","file.txt"]"path/to/file.txt">Normalise a file. normalise "/file/\\test////""/file/\\test/"normalise "/file/./test" "/file/test"#normalise "/test/file/../bob/fred/""/test/file/../bob/fred/"normalise "../bob/fred/""../bob/fred/"normalise "./bob/fred/" "bob/fred/",normalise "./bob////.fred/./...///./..///#.""bob/.fred/.../../#." normalise ".""."normalise "./""./"normalise "./.""./"normalise "/./""/" normalise "/""/"normalise "bob/fred/." "bob/fred/"normalise "//home""/home"?!Check if the last character of a ° is ±.!hasTrailingPathSeparator "/path/"TruehasTrailingPathSeparator "/"True hasTrailingPathSeparator "/path"False@Add a trailing path separator. addTrailingPathSeparator "/path""/path/"!addTrailingPathSeparator "/path/""/path/"addTrailingPathSeparator "/""/"A Remove a trailing path separator"dropTrailingPathSeparator "/path/""/path"%dropTrailingPathSeparator "/path////""/path"dropTrailingPathSeparator "/""/"dropTrailingPathSeparator "//""/"BCheck if a path is absoluteisAbsolute "/path"TrueisAbsolute "path"False isAbsolute ""FalseCCheck if a path is relative+\path -> isRelative path /= isAbsolute pathD:Is a FilePath valid, i.e. could you create a file like it? isValid ""False isValid "\0"FalseisValid "/random_ path:*"TrueE'Is the given filename a valid filename?isFileName "lal"TrueisFileName "."TrueisFileName ".."True isFileName ""FalseisFileName "\0"FalseisFileName "/random_ path:*"FalseFHHelper function: check if the filepath has any parent directories in it.hasParentDir "/.."TruehasParentDir "foo/bar/.."TruehasParentDir "foo/../bar/."TruehasParentDir "foo/bar"FalsehasParentDir "foo"FalsehasParentDir ""FalsehasParentDir ".."FalseGbEquality of two filepaths. The filepaths are normalised and trailing path separators are dropped.equalFilePath "foo" "foo"TrueequalFilePath "foo" "foo/"TrueequalFilePath "foo" "./foo"TrueequalFilePath "foo" "/foo"FalseequalFilePath "foo" "FOO"FalseequalFilePath "foo" "../foo"False\p -> equalFilePath p pH"Whether the file is a hidden file.hiddenFile ".foo"TruehiddenFile "..foo.bar"TruehiddenFile "..."TruehiddenFile "dod"FalsehiddenFile "dod.bar"FalseI<Uses UTF-8 decoding to convert the bytestring into a String.JfUses UTF-8 encoding to convert a user provided String into a ByteString, which represents a filepath.²0Combine two paths, assuming rhs is NOT absolute.,!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJ³²8´µ¶·¸¹º»¼½¾¿À°!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJ*!"#$%&'()*+-,./0123456789:;=<>?@ACBDEFGHIJ,!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJ³²None FK6Get all files from a directory and its subdirectories.Upon entering a directory, Ky will get all entries strictly. However the returned list is lazy in that directories will only be accessed on demand.L?Get all files from a directory and its subdirectories strictly.MRecursively apply the action7 to the parent directory and all files/subdirectories.5This function allows for memory-efficient traversals.S+Open and optionally create this file. See   $ for information on how to use the FileMode type.T*return the canonicalized absolute pathname+like canonicalizePath, but uses realpath(3)ÁÂÃÄÅÆÇÈÉKLMÊNOPQËRÌST KLMNOPQRST QRKLMPONSTÁÂÃÄÅÆÇÈÉKLMÊNOPQËRÌSTSafe+VPath of some base and type.>Internally is a string. The string can be of two formats only: !without trailing path separator: file.txt,  foo/bar.txt,  /foo/bar.txtwith trailing path separator: foo/,  /foo/bar/(There are no duplicate path separators //, no .., no ./, no ~/, etc.ÍSame as  .The following property holds: x == y "a show x == show yÎString ordering.The following property holds: 'show x `compare` show y "a x `compare` yÏString equality.The following property holds: show x == show y "a x == yUVWĞÍÎÏUVWVWUUVWĞÍÎÏ+© 2015 2016 FP Complete, 2016 Julian Ospald BSD 3 clause"Julian Ospald <hasufell@posteo.de> experimentalportableSafe+ZY"Exception when parsing a location.ZA filename, without any ±.[$A relative path; one without a root.\An absolute path.^@Get a location for an absolute path. Produces a normalised path.Throws: Y#parseAbs "/abc" :: Maybe (Path Abs) Just "/abc" parseAbs "/" :: Maybe (Path Abs)Just "/"'parseAbs "/abc/def" :: Maybe (Path Abs)Just "/abc/def",parseAbs "/abc/def/.///" :: Maybe (Path Abs)Just "/abc/def/""parseAbs "abc" :: Maybe (Path Abs)NothingparseAbs "" :: Maybe (Path Abs)Nothing*parseAbs "/abc/../foo" :: Maybe (Path Abs)Nothing_@Get a location for a relative path. Produces a normalised path. Note that filepath may contain any number of ./ but may not consist solely of ./$. It also may not contain a single .. anywhere.Throws: Y "parseRel "abc" :: Maybe (Path Rel) Just "abc"#parseRel "def/" :: Maybe (Path Rel) Just "def/"&parseRel "abc/def" :: Maybe (Path Rel)Just "abc/def"(parseRel "abc/def/." :: Maybe (Path Rel)Just "abc/def/"#parseRel "/abc" :: Maybe (Path Rel)NothingparseRel "" :: Maybe (Path Rel)Nothing)parseRel "abc/../foo" :: Maybe (Path Rel)Nothing parseRel "." :: Maybe (Path Rel)Nothing!parseRel ".." :: Maybe (Path Rel)Nothing`AParses a filename. Filenames must not contain slashes. Excludes Ñ and '..'.Throws: Y parseFn "abc" :: Maybe (Path Fn) Just "abc" parseFn "..." :: Maybe (Path Fn) Just "..."!parseFn "def/" :: Maybe (Path Fn)Nothing$parseFn "abc/def" :: Maybe (Path Fn)Nothing&parseFn "abc/def/." :: Maybe (Path Fn)Nothing!parseFn "/abc" :: Maybe (Path Fn)NothingparseFn "" :: Maybe (Path Fn)Nothing'parseFn "abc/../foo" :: Maybe (Path Fn)NothingparseFn "." :: Maybe (Path Fn)NothingparseFn ".." :: Maybe (Path Fn)Nothinga&Convert any Path to a ByteString type.b.Convert an absolute Path to a ByteString type.c-Convert a relative Path to a ByteString type.dAppend two paths.bThe second argument must always be a relative path, which ensures that undefinable things like `"abc" <> "/def"` cannot happen.Technically, the first argument can be a path that points to a non-directory, because this library is IO-agnostic and makes no assumptions about file types.,(MkPath "/") </> (MkPath "file" :: Path Rel)"/file"3(MkPath "/path/to") </> (MkPath "file" :: Path Rel)"/path/to/file"0(MkPath "/") </> (MkPath "file/lal" :: Path Rel) "/file/lal"-(MkPath "/") </> (MkPath "file/" :: Path Rel)"/file/"eIStrip directory from path, making it relative to that directory. Throws Couldn'tStripPrefixDir* if directory is not a parent of the path.The bases must match.J(MkPath "/lal/lad") `stripDir` (MkPath "/lal/lad/fad") :: Maybe (Path Rel) Just "fad"H(MkPath "lal/lad") `stripDir` (MkPath "lal/lad/fad") :: Maybe (Path Rel) Just "fad"8(MkPath "/") `stripDir` (MkPath "/") :: Maybe (Path Rel)NothingJ(MkPath "/lal/lad/fad") `stripDir` (MkPath "/lal/lad") :: Maybe (Path Rel)Nothing<(MkPath "fad") `stripDir` (MkPath "fad") :: Maybe (Path Rel)Nothingf>Is p a parent of the given location? Implemented in terms of e. The bases must match.8(MkPath "/lal/lad") `isParentOf` (MkPath "/lal/lad/fad")True6(MkPath "lal/lad") `isParentOf` (MkPath "lal/lad/fad")True&(MkPath "/") `isParentOf` (MkPath "/")False8(MkPath "/lal/lad/fad") `isParentOf` (MkPath "/lal/lad")False*(MkPath "fad") `isParentOf` (MkPath "fad")FalsegGet all parents of a path.%getAllParents (MkPath "/abs/def/dod")["/abs/def","/abs","/"]getAllParents (MkPath "/")[]h%Extract the directory name of a path.The following properties hold: dirname (p </> a) == dirname pdirname (MkPath "/abc/def/dod") "/abc/def"dirname (MkPath "/")"/"i Extract the file part of a path.The following properties hold:  basename (p </> a) == basename aThrows: X if given the root path "/"3basename (MkPath "/abc/def/dod") :: Maybe (Path Fn) Just "dod"(basename (MkPath "/") :: Maybe (Path Fn)NothingXÒYÓÔÕÖZ[\]^_`abcdefghijklרÙÚÛIJVXYZ[\]^_`abcdefghijkl\V[ZYX]^`_bcadihfgejklIJXÒYÓÔÕÖZ[\]^_`abcdefghijklרÙÚÛ© 2016 Julian OspaldGPL-2"Julian Ospald <hasufell@posteo.de> experimentalportableSafe+N …Uses z and throws q if it returns True.†^Check if the files are the same by examining device and file id. This follows symbolic links.‡ÓChecks whether the destination directory is contained within the source directory by comparing the device+file ID of the source directory with all device+file IDs of the parent directories of the destination.ˆRChecks if the given file exists and is not a directory. Does not follow symlinks.‰NChecks if the given file exists and is a directory. Does not follow symlinks.Š,Checks whether a file or folder is writable.‹WChecks whether the directory at the given path exists and can be opened. This invokes  openDirStream which follows symlinks.Œ Throws a vD FmIOException if the directory at the given path cannot be opened.¡Carries out an action, then checks if there is an IOException and a specific errno. If so, then it carries out another action, otherwise it rethrows the error.šExecute the given action and retrow IO exceptions as a new Exception that have the given errno. If errno does not match the exception is rethrown as is.Like Ü, with arguments swapped.Like İ‚, but allows to have different clean-up actions depending on whether the in-between computation has raised an exception or not. &nopqrstuvwxyz{|}~€‚ƒ„…†‡ source dir.full destination, `dirname dest` must existˆ‰Š‹Œerrno to catch-action to try, which can raise an IOExceptionEaction to carry out in case of an IOException and if errno matcheserrno to catchrethrow as if errno matches action to trycomputation to run first8computation to run last, when no exception was raised8computation to run last, when an exception was raisedcomputation to run in-between‘reaction on IO errorsreaction on FmIOExceptionŞß$nopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘$nopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘n opqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘Şß© 2016 Julian OspaldGPL-2"Julian Ospald <hasufell@posteo.de> experimentalportableNoneMmApplies realpath on the given absolute path.Throws:à- if the file at the given path does not existà if the symlink is brokenšYCopies a directory recursively to the given destination. Does not follow symbolic links.Safety/reliability concerns: not atomicexamines filetypes explicitlyan explicit check ‡Ô is carried out for the top directory for basic sanity, because otherwise we might end up with an infinite copy loop... however, this operation is not carried out recursively (because it's slow)Throws:à# if source directory does not existá$ if output directory is not writableá$ if source directory can't be openedâ, if source directory is wrong type (symlink)â1 if source directory is wrong type (regular file)q. if source and destination are the same file (n)ã if destination already existsr( if destination is contained in source (n)›Like š6 except it overwrites contents of directories if any.Throws:à# if source directory does not existá$ if output directory is not writableá$ if source directory can't be openedâ, if source directory is wrong type (symlink)â1 if source directory is wrong type (regular file)q. if source and destination are the same file (n)r( if destination is contained in source (n)œRecreate a symlink.Throws:â% if symlink file is wrong type (file)â* if symlink file is wrong type (directory)á) if output directory cannot be written toá% if source directory cannot be openedã# if destination file already existsq. if source and destination are the same file (n) Note: calls symlinkCopies the given regular file to the given destination. Neither follows symbolic links, nor accepts them. For "copying" symbolic links, use œ instead.Throws:à if source file does not existá$ if output directory is not writableá$ if source directory can't be openedâ' if source file is wrong type (symlink)â) if source file is wrong type (directory)q. if source and destination are the same file (n)ã if destination already exists Note: calls sendfileLike z except it overwrites the destination if it already exists. This also works if source and destination are the same file.Safety/reliability concerns: not atomic5falls back to delete-copy method with explicit checksThrows:à if source file does not existá$ if output directory is not writableá$ if source directory can't be openedâ' if source file is wrong type (symlink)â) if source file is wrong type (directory)q. if source and destination are the same file (n) Note: calls sendfileŸ_Copies anything. In case of a symlink, it is just recreated, even if it points to a directory.Safety/reliability concerns:examines filetypes explicitlycalls š for directories Like Ÿà except it overwrites the destination if it already exists. For directories, this overwrites contents without pruning them, so the resulting directory may have more files than have been copied.¡9Deletes the given file, does not follow symlinks. Raises eISDIR8 if run on a directory. Does not follow symbolic links.Throws:ä for wrong file type (directory)à if the file does not existá if the directory cannot be read¢ADeletes the given directory, which must be empty, never symlinks.Throws:ä+ for wrong file type (symlink to directory)ä# for wrong file type (regular file)à if directory does not existå if directory is not emptyá. if we can't open or write to parent directory Notes: calls rmdir£PDeletes the given directory recursively. Does not follow symbolic links. Tries ¢/ first before attemtping a recursive deletion.Safety/reliability concerns: not atomicexamines filetypes explicitlyThrows:ä+ for wrong file type (symlink to directory)ä# for wrong file type (regular file)à if directory does not existá. if we can't open or write to parent directory¤¡Deletes a file, directory or symlink, whatever it may be. In case of directory, performs recursive deletion. In case of a symlink, the symlink file is deleted.Safety/reliability concerns:examines filetypes explicitlycalls £ for directories¥eOpens a file appropriately by invoking xdg-open. The file type is not checked. This forks a process.¦BExecutes a program with the given arguments. This forks a process.§LCreate an empty regular file at the given directory with the given filename.Throws:á) if output directory cannot be written toã# if destination file already exists¨ICreate an empty directory at the given directory with the given filename.Throws:á) if output directory cannot be written toã( if destination directory already exists©nRename a given file with the provided filename. Destination and source must be on the same device, otherwise æ will be raised.CDoes not follow symbolic links, but renames the symbolic link file.Safety/reliability concerns:@has a separate set of exception handling, apart from the syscallThrows:à if source file does not existá) if output directory cannot be written toá% if source directory cannot be openedç3 if source and destination are on different devicess# if destination file already existst( if destination directory already existsq. if destination and source are the same file (n) Note: calls è3 (but does not allow to rename over existing files)ªdMove a file. This also works across devices by copy-delete fallback. And also works on directories.CDoes not follow symbolic links, but renames the symbolic link file.Safety/reliability concerns:-copy-delete fallback is inherently non-atomicThrows:à if source file does not existá) if output directory cannot be written toá% if source directory cannot be openeds# if destination file already existst( if destination directory already existsq. if destination and source are the same file (n) Note: calls è3 (but does not allow to rename over existing files)«Like ª., but overwrites the destination if it exists.CDoes not follow symbolic links, but renames the symbolic link file.Safety/reliability concerns:-copy-delete fallback is inherently non-atomic?checks for file types and destination file existence explicitlyThrows:à if source file does not existá) if output directory cannot be written toá% if source directory cannot be openedq. if destination and source are the same file (n) Note: calls è3 (but does not allow to rename over existing files)¬#Default permissions for a new file.­(Default permissions for a new directory.®tGets all filenames of the given directory. This excludes "." and "..". This version does not follow symbolic links.Throws:à if directory does not existä if file type is wrong (file)ä( if file type is wrong (symlink to file)ä' if file type is wrong (symlink to dir)á if directory cannot be opened¯YGet the file type of the file located at the given path. Does not follow symbolic links.Throws:à if the file does not existá* if any part of the path is not accessible m’“”•–—˜™š source dirfull destination› source dirfull destinationœthe old symlink filedestination file source filedestination file source filedestination fileé source filedestination fileŸ ¡¢£¤¥¦program arguments§¨©ª file to move destination« file to move destination¬­® dir to read¯m’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯mm’“”•–—˜™š›œéŸ ¡¢£¤¥¦§¨©ª«¬­®¯ê   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_` abcdef ghi jkElmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾·¸¿·¸À·¸Á·¸Â·¸Ã·¸Ä·¸Å·¸Æ·¸Ç·¸È·¸É·¸Ê·¸ËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛºÜİŞßàáâãäåæçºèéºêëìíºîïºîğºîñºîòºîóºîôºõöºî÷·øùúûhpath_DUuby4hHpXACYaiENd90xRSystem.Posix.Directory.ForeignHPath.IO.UtilsSystem.Posix.FilePath!System.Posix.Directory.TraversalsHPath.InternalHPathHPath.IOHPath.IO.Errors System.PosixFilesPath toFilePathFlagsUnsupportedFlagDirTypeunFlags isSupportedoCloexecdtBlkdtChrdtDirdtFifodtLnkdtRegdtSock dtUnknownoAppendoAsyncoCreat oDirectoryoExcloNoctty oNofollow oNonblockoRdonlyoWronlyoRdwroSyncoTruncpathMax unionFlagswhenMunlessM pathSeparatorisPathSeparatorsearchPathSeparatorisSearchPathSeparator extSeparatorisExtSeparatorsplitExtension takeExtensionreplaceExtension dropExtension addExtension<.> hasExtensionsplitExtensionsdropExtensionstakeExtensions splitFileName takeFileNamereplaceFileName dropFileName takeBaseNamereplaceBaseName takeDirectoryreplaceDirectorycombine splitPathsplitDirectoriesjoinPath normalisehasTrailingPathSeparatoraddTrailingPathSeparatordropTrailingPathSeparator isAbsolute isRelativeisValid isFileName hasParentDir equalFilePath hiddenFile fpToStringuserStringToFPallDirectoryContentsallDirectoryContents'traverseDirectoryunpackDirStream packDirStream readDirEntgetDirectoryContentsgetDirectoryContents'openFdrealpathRelCMkPath PathExceptionPathParseExceptionFnRelAbsparseAbsparseRelparseFnfromAbsfromRelstripDir isParentOf getAllParentsdirnamebasename withAbsPath withRelPath withFnPathcanonicalizePathHPathIOExceptionFileDoesNotExistDirDoesNotExistSameFileDestinationInSource FileDoesExist DirDoesExistInvalidOperationCan'tOpenDirectory CopyFailedisFileDoesNotExistisDirDoesNotExist isSameFileisDestinationInSourceisFileDoesExistisDirDoesExistisInvalidOperationisCan'tOpenDirectory isCopyFailedthrowFileDoesExistthrowDirDoesExistthrowFileDoesNotExistthrowDirDoesNotExist throwSameFilesameFilethrowDestinationInSource doesFileExistdoesDirectoryExist isWritablecanOpenDirectorythrowCantOpenDirectory catchErrnorethrowErrnoAs handleIOError bracketeer reactOnErrorFileType Directory RegularFile SymbolicLink BlockDeviceCharacterDevice NamedPipeSocketcopyDirRecursivecopyDirRecursiveOverwriterecreateSymlinkcopyFilecopyFileOverwriteeasyCopyeasyCopyOverwrite deleteFile deleteDirdeleteDirRecursive easyDeleteopenFile executeFilecreateRegularFile createDir renameFilemoveFilemoveFileOverwrite newFilePerms newDirPerms getDirsFiles getFileTypeunix_KZL8h98IqDM57kQSPo1mKx System.Posix.ByteString.FilePath RawFilePathbaseGHC.Real/ combineRawsplitFileNameRawthrowErrnoPathIfMinus1_throwErrnoPathIfMinus1throwErrnoPathIfNullthrowErrnoPathIf_throwErrnoPathIfthrowErrnoPaththrowErrnoPathIfRetrythrowErrnoPathIfNullRetrythrowErrnoPathIfMinus1Retry_throwErrnoPathIfMinus1RetrypeekFilePathLen peekFilePath withFilePathCDirentCDirc_open c_fdopendir c_realpathc_typec_name c_freeDirEnt c_readdiractOnDirContents fdOpendiropen_ $fShowPath $fOrdPath$fEqPath $fNFDataPathGHC.Base.RootDirHasNoBasename InvalidAbs InvalidRel InvalidFnCouldn'tStripPrefixTPS stripPrefix$fRelCFn $fRelCRel$fExceptionPathException$fExceptionPathParseExceptionSystem.IO.Error catchIOErrorControl.Exception.Basebracket$fExceptionHPathIOException$fShowHPathIOExceptionGHC.IO.Exception NoSuchThingPermissionDeniedInvalidArgument AlreadyExistsInappropriateTypeUnsatisfiedConstraintsForeign.C.ErroreXDEVUnsupportedOperationSystem.Posix.Files.ByteStringrename _copyFile