Class SyncanyRemoteFile

  • public class SyncanyRemoteFile
    extends RemoteFile
    The repo file represents the repository-defining file. It is used to describe the chunking and encryption parameters of an an initialized repository.

    Name pattern: The file must always be called syncany Initializing an instance with a different name will throw an exception.

    • Method Detail

      • validateName

        protected java.lang.String validateName​(java.lang.String name)
                                         throws StorageException
        Description copied from class: RemoteFile
        Parses the name of the file and validates it against the classes name pattern. While RemoteFile has no name pattern (and never throws an exception), sub-classes might by overriding this method.
        validateName in class RemoteFile
        name - The name of the file (as it is identified by Syncany)
        Returns a (potentially changed) name, after validating the name
        StorageException - If the name does not match the name pattern defined by the class.
        Note: RemoteFile does never throw this exceptions, however, subclasses might.