Commit Graph

7 Commits

Author SHA1 Message Date
29f4dc67b6
TESTS: use specDir to refer to the test directories 2016-05-09 00:16:26 +02:00
a91b4859d0
TESTS: fix getDirsFilesSpec 2016-05-08 23:46:05 +02:00
c89d6b945c
TESTS: use hspec-discover 2016-05-08 23:45:51 +02:00
5b6a342a9e
LIB/TESTS: fix moveFileOverwrite and add tests
We must not allow to move a file to a directory, deleting that
directory and effectively changing the filetype.
2016-05-08 23:20:00 +02:00
9c6cf51825
LIB: refactor FileOperation and related Errors
* 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
2016-05-08 18:48:17 +02:00
d58fd6e6f0
LIB: add copyFileOverwrite 2016-05-08 12:48:03 +02:00
1487351f29
TESTS: restructure files 2016-05-03 13:27:10 +02:00