@Target(value=TYPE) @Retention(value=RUNTIME) public @interface PathAware
RemoteFilestorage paths in the backend for the purpose of limiting the per-folder file count.
This is especially critical if the backend storage has a limit on how many files can be stored in a single folder, e.g. the Dropbox plugin can only store 25,000 files in one folder.
This annotation is only recognized if used on a
applied, it wraps the original transfer manager in a
which defines details for the subfoldering, such as the depths of the subfolders, the path
separator or other relevant settings.
The only mandatory configuration for this feature is specifying a
PathAwareFeatureExtension to manage the required subfolders (creating,
deleting, listing). It must be implemented by the transfer plugin.
Example: If the
subfolderDepth() is 2, the
bytesPerFolder() is 1,
folderSeparator() is '/', a multichunk file might be located at
'multichunks/e3/5f/multichunk-e35f0d48060...' instead of
|Modifier and Type||Required Element and Description|
The path aware extension must be specified to manage the required subfolders (creating, deleting, listing).
|Modifier and Type||Optional Element and Description|
Defines the remote file classes to be affected by the subfoldering.
Defines the bytes of the subfolder identifier used for the subfolders.
Defines the separator used to complete the folder paths.
Defines the depth of the subfolders to be created.
public abstract int subfolderDepth
public abstract int bytesPerFolder
public abstract char folderSeparator
public abstract java.lang.Class<? extends RemoteFile> affected
Syncany is an open-source cloud storage and filesharing application.
Code located at https://github.com/syncany/syncany
JavaDoc for version 0.4.9-alpha generated based on commit f99e526 at Sun Apr 02 08:27:54 UTC 2017
Copyright © 2011-2015 Philipp C. Heckel