PDA

View Full Version : filesystem.tree questions



jgable
09-15-2008, 11:25 PM
Filesystem.tree has a flag to limit the user to a single directory. Is there a way to set that as a config setting in the extension? I don't understand what good this limit is unless it is set in the extension if you allow anyone to use the extension.

The next question is just returning a file. It looks like something like this http://wiki.domain.com/@api/deki/services/default/22/doc/backup_log.html will return a file that if it is wrapped in at least <pre> elememnts could be displayed in an iFrame. Is there a shorter, possibly more portable way to expree this? Maybe filesystem.file{filename: abc.html}.

As you can probably guess I am trying to create a way to view backup log files but this might be another way to view other logs stored in the filesystem.

brigettek
09-16-2008, 07:33 PM
Filesystem.tree has a flag to limit the user to a single directory. Is there a way to set that as a config setting in the extension? I don't understand what good this limit is unless it is set in the extension if you allow anyone to use the extension.

There is no such config setting. The purpose of limiting the user to a single directory is not for security purposes, but rather just to provide a way to view files in a specific folder.

brigettek
09-16-2008, 07:34 PM
Filesystem.tree has a flag to limit the user to a single directory. Is there a way to set that as a config setting in the extension? I don't understand what good this limit is unless it is set in the extension if you allow anyone to use the extension.

There is no such config setting. Limiting to a single directory is not for security purposes, but rather just to provide a way to display files in a specific folder.


The next question is just returning a file. It looks like something like this http://wiki.domain.com/@api/deki/ser...ackup_log.html will return a file that if it is wrapped in at least <pre> elememnts could be displayed in an iFrame. Is there a shorter, possibly more portable way to expree this? Maybe filesystem.file{filename: abc.html}.

If you just want to link to files on a network share, use this FAQ (http://wiki.developer.mindtouch.com/MindTouch_Deki/FAQ/Page_Management/How_do_I...Add_a_link_to_a_file_share%3f). Or do you need something more?