FileOperation abstraction a good idea?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

FileOperation abstraction a good idea?

Post by Silmarillion »

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
Post Reply

Return to “Developers Discussion”