Interface UploadNecessityCheckStrategy

    • Method Detail

      • isUploadNecessary

        boolean isUploadNecessary​(Path file,
                                  String fullFileNameInBucketFs,
                                  ReadOnlyBucket bucket)
                           throws BucketAccessException
        Decide if it is necessary to upload a file to BucketFS.
        Parameters:
        file - local file
        fullFileNameInBucketFs - path to the file in BucketFS
        bucket - bucket the file is uploaded to
        Returns:
        true if the file should get uploaded
        Throws:
        BucketAccessException - if the necessity check cannot be executed