Julian Ospald
9c6cf51825
* move FileOperation/Copy/Move types to its own UtilTypes module * remove runFileOp, since it's hard to really do the correct thing here for all possible exceptions... instead, let the GUI logic handle this * introduce copyDirRecursiveOverwrite, copyFileOverwrite and easyCopyOverwrite * use our own throwSameFile on functions to distinguish between "same file" and "file already exists" * don't follow destination in copyFile* either * improve throwSameFile, by examining device and file ids * add isWritable * improve documentation * adjust and fix tests |
||
---|---|---|
.. | ||
copyDirRecursiveOverwriteSpec | ||
copyDirRecursiveSpec | ||
copyFileOverwriteSpec | ||
copyFileSpec | ||
createDirSpec | ||
createRegularFileSpec | ||
deleteDirRecursiveSpec | ||
deleteDirSpec | ||
deleteFileSpec | ||
getDirsFilesSpec | ||
getFileTypeSpec | ||
moveFileSpec | ||
recreateSymlinkSpec | ||
renameFileSpec | ||
CopyDirRecursiveOverwriteSpec.hs | ||
CopyDirRecursiveSpec.hs | ||
CopyFileOverwriteSpec.hs | ||
CopyFileSpec.hs | ||
CreateDirSpec.hs | ||
CreateRegularFileSpec.hs | ||
DeleteDirRecursiveSpec.hs | ||
DeleteDirSpec.hs | ||
DeleteFileSpec.hs | ||
GetDirsFilesSpec.hs | ||
GetFileTypeSpec.hs | ||
MoveFileSpec.hs | ||
RecreateSymlinkSpec.hs | ||
RenameFileSpec.hs |