Julian Ospald
3cd7a246ab
Fix build with latest hpath library
...
This also touches some exception handling code, be careful.
2018-05-17 11:42:36 +02:00
Julian Ospald
df0b5e3e16
LIB/GTK: cleanup
2016-06-12 23:40:55 +02:00
Julian Ospald
03fbae7999
LIB: fix build with GHC-7.10
2016-06-02 15:00:09 +02:00
Julian Ospald
dba15d43e1
LIB: add type signatures to pattern synonyms
2016-06-02 13:50:08 +02:00
Julian Ospald
d460b4ce11
LIB: simplify error handling in FileType
...
We don't have a Failed constructor anymore.
2016-06-02 13:44:47 +02:00
Julian Ospald
89b231a2c9
GTK: fix various glitches when opening tabs
2016-06-01 23:24:00 +02:00
Julian Ospald
1831486f34
Minor cleanup
2016-05-29 14:02:26 +02:00
Julian Ospald
5aef692b4f
Fix build
2016-05-29 13:26:21 +02:00
Julian Ospald
41e2ae6131
Adjust to new HPath API
2016-05-09 16:37:02 +02:00
Julian Ospald
47cd43dba6
LIB: refactor large parts of the API
...
This makes the FileOperations module more low-level, since we now
handle everything via 'Path Abs' and only leave 'File a' for
e.g. GUI purposes.
Also fixes various bugs in the Errors module.
This depends on custom changes in posix-paths.
2016-05-02 19:06:53 +02:00
Julian Ospald
d432c2146b
GTK: improve file property dialog
...
Adds the following fields:
* file type
* permissions
* link destination of symlink (if applicable)
2016-04-20 17:16:58 +02:00
Julian Ospald
064d5a1032
LIB/GTK: use strict data types where possible
2016-04-20 16:34:26 +02:00
Julian Ospald
a61b409486
GTK: implement fileinfo dialog wrt #32
2016-04-19 21:05:29 +02:00
Julian Ospald
e2c83b3c31
LIB/GTK: remove obsolete fullPath/fullPathS and refactor for prettiness
2016-04-16 21:50:15 +02:00
Julian Ospald
593a59787f
LIB: use posix-path traversal functions for getDirsFiles
...
This should also speed up reading.
2016-04-16 19:39:03 +02:00
Julian Ospald
bd707fc193
LIB: fix readFile, rm obsolete comment
2016-04-16 19:24:36 +02:00
Julian Ospald
0fca64594d
LIB/GTK: use more recent library versions
2016-04-16 19:14:08 +02:00
Julian Ospald
bb6c1b3cda
LIB/GTK: refactor File base type
...
We have now ditched AnchoredFile and just use File with Path Abs
in the path field.
This is useful since we now:
* don't allow "." or ".." as filenames anymore
* normalise paths in our path parsers and reject paths with ".."
This also allows us to know that filepaths are always valid. In addition
the 'basename' function from hpath may throw an exception if run
on the root dir "/". This exception is basically uncatched currently,
which is fine, because it's not a selectable directory.
2016-04-15 14:23:41 +02:00
Julian Ospald
c2f3da6180
LIB/GTK: improve exceptions/error handling
2016-04-11 01:59:18 +02:00
Julian Ospald
3f303b4cd4
LIB: minor cleanup
2016-04-10 22:04:07 +02:00
Julian Ospald
b7ee2ccd3d
LIB: move 'hiddenFile' to hpath package
2016-04-10 22:03:30 +02:00
Julian Ospald
bddf29671a
LIB: improve documentation
2016-04-10 19:25:22 +02:00
Julian Ospald
59d4051d84
LIB: small cleanup, rm obsolete functions, fix some TODOs
2016-04-10 19:16:06 +02:00
Julian Ospald
5bcbbcc69c
LIB: overhaul file operations and improve overall performance
...
This introduces a lot of changes and uses a more solid
file copy operation.
2016-04-10 03:58:20 +02:00
Julian Ospald
418365db0f
LIB: fix readFileContents
...
We incorrectly added +1 to the filesize.
2016-04-09 15:15:57 +02:00
hasufell
5bce5dd6ff
LIB: simplify error handling
...
'bracket' already handles this.
2016-04-08 03:00:37 +02:00
hasufell
17407860f4
LIB: improve exception handling
2016-04-06 04:27:02 +02:00
Julian Ospald
038b0d0377
LIB: various cleanups
2016-04-06 03:10:07 +02:00
Julian Ospald
bad817d32d
LIB/GTK: use ByteString instead of String for
2016-04-05 00:56:36 +02:00
Julian Ospald
4e75a84439
LIB: remove more occurences of FilePath
2016-04-03 03:57:11 +02:00
Julian Ospald
4da3c92e5e
LIB/GTK: cleanup compiler warnings
2016-03-31 16:19:31 +02:00
Julian Ospald
91b2dc9e4b
LIB: improve documentation in readWith
2016-03-31 02:29:32 +02:00
Julian Ospald
dd013b7d7b
Fix Copyright
2016-03-31 00:28:23 +02:00
Julian Ospald
74a48b2668
Restructure module layout
2016-03-30 20:16:34 +02:00