add FileUtils class
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Granite |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Working on Scratch I am noticing that GLib is not so good with files handling (open, load, save, etc.). It doesn't support file reading from uris and sometimes it does undesired things on files such as permission resetting. A lot of apps need a working file handling system (scratch, footnote, noise (?), midori (?), maya and many others) but it couldn't be easy to be done sometimes and could require a lot of functions which are not well documented. I am working on a set of functions based on GIO to have the best file handling with Vala. My functions can be included in a common class to make things easily and to have a collective working file handling class to avoid undesired bugs in some apps.
tags: | added: file-handling |
Changed in granite: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
importance: | Undecided → Wishlist |
assignee: | nobody → Mario Guerriero (mefrio-g) |
you can see a prototype of this implementation here: http:// bazaar. launchpad. net/~elementary -apps/scratch/ scratch/ view/head: /src/Services/ FileHandler. vala I've called the class FileHandler to avoid problem with the GLib one