Improve File/Directory Services

joecomotion18 Aug 2009 6:32 PM
It would be nice if the file access service allowed you get file metadata, like the last modified date.

Also, would like to be able to browse a directory programatically / watch a directory for changes.
Lloyd Hilaiel19 Aug 2009 10:09 AM
QUOTE (joecomotion @ Aug 18 2009, 05:32 PM) <{POST_SNAPBACK}>
It would be nice if the file access service allowed you get file metadata, like the last modified date.

Also, would like to be able to browse a directory programatically / watch a directory for changes.


Yo Joe,

Adding last modified date could be a really simple (and nice) addition to File Access. Feel free to add that as a request to the github project http://github.com/lloyd/bp-fileaccess/tree/master (that's the next version of FileAccess)

As far as programatically browsing directories, that's a bit scary. We've been careful to only allow a page access to files that a user has selected, either by draging and dropping them onto a page, or by selecting them in a file browse dialog. The act of selecting a file from within the context of a page is what we consider to be "implicit consent".

Does that restriction make sense to you?

best,
lloyd
joecomotion19 Aug 2009 10:55 AM
QUOTE (Lloyd Hilaiel @ Aug 19 2009, 09:09 AM) <{POST_SNAPBACK}>
As far as programatically browsing directories, that's a bit scary. We've been careful to only allow a page access to files that a user has selected, either by draging and dropping them onto a page, or by selecting them in a file browse dialog. The act of selecting a file from within the context of a page is what we consider to be "implicit consent".

Does that restriction make sense to you?

best,
lloyd


All of this is a bit scary :)How about allowing file access+directory browsing to apply recursively to files/subdirs of a directory that the user has previously selected or somehow authorized access to?
Lloyd Hilaiel19 Aug 2009 11:22 PM
QUOTE (joecomotion @ Aug 19 2009, 09:55 AM) <{POST_SNAPBACK}>
All of this is a bit scary :)lloyd