Commit Graph

12 Commits

Author SHA1 Message Date
Julian Ospald 09821f8fc2
LIB: implement file moving operations 2015-12-23 16:08:39 +01:00
Julian Ospald 6b89dd8564
LIB: make pattern IsSymL more lazy 2015-12-22 19:50:24 +01:00
Julian Ospald eba0c95f8c
LIB: simplify symlink pattern matching via ViewPatterns/PatternSynonyms 2015-12-22 19:40:29 +01:00
Julian Ospald 2486d83260
LIB/GTK: use AnchoredFile in IO.File
What's the point of having it anyway if we don't?
2015-12-22 14:15:48 +01:00
Julian Ospald 433cb164a6
LIB: improve symlink handling 2015-12-21 18:32:53 +01:00
Julian Ospald 988350967a
LIB: wrap canonicalizePath so it doesn't follow the last symlink component
canonicalizePath tries to remove as many symlink components as possible,
but this is not what we want for a lot of operations like copying
files. So instead we preserve the last path component if it's a symlink
and canonicalize it's parent filepath.
2015-12-21 17:15:31 +01:00
Julian Ospald 0867c8b2e3
LIB/GTK: add '.' and '..' files, remove fsState and improve safety
We use canonicalizePaths where we need well-formed paths and cannot
rely on the input being sane.
2015-12-21 05:41:12 +01:00
Julian Ospald fe6145d5be
LIB/GTK: change DirTree again
we now have:
* AnchoredFile -- for representing a file with context
* File         -- for representing a file only

Both representations mean "file" in the broader sense, including
directories.
2015-12-21 00:41:02 +01:00
Julian Ospald 3ba647d172
LIB/GTK: rewrite to use more atomic operations/data structures
This is a little bit less fancy, but avoids lazy IO. It depends a
little bit more on FilePath, but that also allows for a more general
interface.
2015-12-20 00:30:52 +01:00
Julian Ospald 0781cbf9d5
LIB: remove obsolete code in Zipper 2015-12-18 04:15:55 +01:00
Julian Ospald 87ad7d02f0
LIB/GTK: refactor File API and add copyFile 2015-12-17 23:08:02 +01:00
Julian Ospald d13cdac9e0
Initial commit 2015-12-17 04:42:22 +01:00