My issues with the new FS-Plugin API
Posted: 2006-11-12, 13:09 UTC
The new interfaces in FileSystem plugin API are really usefull, but...
... 1.
wouldn't it be usefull, if the new FsLinksToLocalFiles and the FsContent* (content-field-definition) are per directory, not per plugin?
I mean, the FsLinksToLocalFiles should have a parameter "RemoteDir", so i can implement for each directory in the filesystem, if there are links to local files or not. The same for content-functions like FsContentGetSupportedField.
... 2.
Another issue is the following:
If i implement the FsLinksToLocalFiles and return True, implement the FsGetLocalName, return the local name and also true, i can get loading the local file to lister when pressing F3.
But if i return False in FsGetLocalName (telling that this specific file is not a link to a local file) and pressing F3, nothing happens.
I assumed, that in this case the default behavior would go on... download file from plugin to temp-directory and load to lister from this temp location. But instead, NOTHING happens.
Thanx in advance for any explanation.
... 1.
wouldn't it be usefull, if the new FsLinksToLocalFiles and the FsContent* (content-field-definition) are per directory, not per plugin?
I mean, the FsLinksToLocalFiles should have a parameter "RemoteDir", so i can implement for each directory in the filesystem, if there are links to local files or not. The same for content-functions like FsContentGetSupportedField.
... 2.
Another issue is the following:
If i implement the FsLinksToLocalFiles and return True, implement the FsGetLocalName, return the local name and also true, i can get loading the local file to lister when pressing F3.
But if i return False in FsGetLocalName (telling that this specific file is not a link to a local file) and pressing F3, nothing happens.
I assumed, that in this case the default behavior would go on... download file from plugin to temp-directory and load to lister from this temp location. But instead, NOTHING happens.
Thanx in advance for any explanation.