|
@@ -455,18 +455,6 @@ open class FolderPickerActivity :
|
|
|
}
|
|
|
|
|
|
targetFilePaths?.let { filePaths ->
|
|
|
- if (!isFolderAndFilePathsValid(filePaths)) {
|
|
|
- DisplayUtils.showSnackMessage(
|
|
|
- this,
|
|
|
- R.string.file_name_validator_error_contains_reserved_names_or_invalid_characters
|
|
|
- )
|
|
|
- Handler(Looper.getMainLooper()).postDelayed({
|
|
|
- setResult(RESULT_CANCELED, resultData)
|
|
|
- finish()
|
|
|
- }, 1000L)
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
action?.let { action ->
|
|
|
fileOperationsHelper.moveOrCopyFiles(action, filePaths, file)
|
|
|
}
|
|
@@ -478,12 +466,6 @@ open class FolderPickerActivity :
|
|
|
finish()
|
|
|
}
|
|
|
|
|
|
- private fun isFolderAndFilePathsValid(filePaths: List<String>): Boolean {
|
|
|
- val isFolderPathValid = FileNameValidator.checkFolderPath(file.remotePath, capabilities, this)
|
|
|
- val isFilePathsValid = FileNameValidator.checkFilePaths(filePaths, capabilities, this)
|
|
|
- return isFilePathsValid && isFolderPathValid
|
|
|
- }
|
|
|
-
|
|
|
override fun onRemoteOperationFinish(operation: RemoteOperation<*>?, result: RemoteOperationResult<*>) {
|
|
|
super.onRemoteOperationFinish(operation, result)
|
|
|
if (operation is CreateFolderOperation) {
|