Created on 24.08.2011
Bases: object
Returns: | the pyth of the directory of this virtual file |
---|
Returns: | the parent directory of this virtualfile’s path which is a subdirectory of real_directory |
---|
Created on 23.08.2011
This FUSE module initializes the store at runtime when the user accesses the virtual file /.config/.###config### and writes the appropriate parameters to the file.
Bases: cloudfusion.pyfusebox.pyfusebox.PyFuseBox
Offers a virtual configuration file, to configure Cloudfusion at runtime. To better separate the data from the configuration directory, data can be accessed in the top level directory data, and the configuration file can be accessed in the top level directory config.
Bases: cloudfusion.fuse.Operations
This is the application entry point for file system requests, for instance to handle read and write requests to files within the mount directory. PyFuseBox delegates these requests to an implementation of the interface cloudfusion.store.Store. For instance to cloudfusion.store.dropbox.dropbox_store.DropboxStore, which would then retrieve the accessed file from Dropbox, or store the modified file to Dropbox.
Create an instance of cloudfusion.pyfusebox.PyFuseBox. :param path: the path to the mount point :param store: an instance of the implementation of the interface cloudfusion.store.Store or None for later configuration
Reduce write speed to 10kB/s if cache has reached its hard limit
This implementation should be looked at by a linux guru, since I have little experience concerning filesystems.
Created on Oct 7, 2013
@author: joe
Bases: cloudfusion.pyfusebox.configurable_pyfusebox.ConfigurablePyFuseBox
Offers a virtual statistics directory stats, to monitor Cloudfusion at runtime. The three files are stats, notuploaded, and errors. stats shows runtime statistics like throughput, cache hits, or cache size. notuploaded shows a list of files that is not yet synchronized with the provider. errors shows a list of recent errors.
Created on 24.08.2011
Bases: cloudfusion.pyfusebox.virtualfile.VirtualFile
Responsible for the (re)configuration of cloudfusion.pyfusebox.ConfigurablePyFuseBox, everytime it contents is written to it.
To add a new implementation of cloudfusion.store.Store, add an elif branch in the if statement. The parameter service is the value of the variable name specified in the configuration file in the [store] section. The parameter auth is a dictionary with every variable specified in the configuration file in the [auth] section, such as password and user. :param service: The name of the service to be used. I.e. Sugarsync, Dropbox, or Google Storage. :param auth: Dictionary of the variable specified in the configuration file’s [auth] section.
Parametrize the store implementation with the settings in the configuration file Also, it is determined which wrappers should envelope the store for caching, or to provide a monitoring layer.
Add id and secret.