Need to create this type of object (from kivy.properties & Kivy filechooser)
ObjectProperty(FileSystemLocal(), baseclass=FileSystemAbstract)
Need to create this type of object (from kivy.properties & Kivy filechooser)
ObjectProperty(FileSystemLocal(), baseclass=FileSystemAbstract)
The
FileSystemLocalclass is a simple interface to someosandos.pathmethods. For example, thelistdir()method ofFileSystemLocalis simply a call toos.listdir(). So it is not specific to any directory, it is just specific to the localosandos.path. So, technically, the answer is no.Perhaps you could define your own
FileSystemLocalsubclass that meets your requirements.Here is an example of an extension of
FileSystemLocalthat uses a specific directory:This can be used as:
Note:
FileSystemLocalDiris based heavily onFileSystemLocal.dir=in the constructor sets the default directory that is consulted for all the methods ofFileSystemLocalDir.dir=argument is not provided, theFileSystemLocalDiris equivalent toFileSystemLocal.FileSystemLocalDirbegins with a/, it is treated as an absolute path and the provided default directory is ignored (this is an effect of the use ofos.join).