FileOperation abstraction a good idea?
Posted: Mon Sep 18, 2006 8:28 pm
Hi all
I can see that the rewrite of the filemanager-module is under consideration for 1.1.0, and I'm looking foward to working on it more. I have a small suggestion/inquery concerning that, as I'm considering doing a central module for FileOperations which for instance tries the php-functions but falls back to ftp-functions from FTP-module if unsuccessful.
Do you think this abstraction is the way to go?
Such a module should only contain a simple API-for fileoperations both simple and perhaps a bit more advanced like recursive deletion/moving, unpacking etc.
The drawback is that yet another module should be distributed with the core for correct functionality. I will of course make the use of FTP optional so it doesn't have to be distributed.
A future prospect of the module could be something like per-file updating via FTP like SimpleMachines-Forum does, although it's a bit out in the future.
Please give your 2cents whether you think I should continue working on this abstraction (you could check out FileOperations-svn for a totally nonworking module which does show a little bit of what I had in mind)
Best regards
Silmarillion
I can see that the rewrite of the filemanager-module is under consideration for 1.1.0, and I'm looking foward to working on it more. I have a small suggestion/inquery concerning that, as I'm considering doing a central module for FileOperations which for instance tries the php-functions but falls back to ftp-functions from FTP-module if unsuccessful.
Do you think this abstraction is the way to go?
Such a module should only contain a simple API-for fileoperations both simple and perhaps a bit more advanced like recursive deletion/moving, unpacking etc.
The drawback is that yet another module should be distributed with the core for correct functionality. I will of course make the use of FTP optional so it doesn't have to be distributed.
A future prospect of the module could be something like per-file updating via FTP like SimpleMachines-Forum does, although it's a bit out in the future.
Please give your 2cents whether you think I should continue working on this abstraction (you could check out FileOperations-svn for a totally nonworking module which does show a little bit of what I had in mind)
Best regards
Silmarillion