From 11f838f9e4302154ebbcf5bad51faca4a0e28607 Mon Sep 17 00:00:00 2001 From: Felix Heidecke Date: Mon, 13 Feb 2017 16:51:23 +0100 Subject: Add ignore_files to config, test files against ignore_files list on upload fix typo and indentation Move blacklist declaration to lib/public/Files/FileInfo.php, Rename *ignored to *blacklisted Mocked blacklist_files for testing Mocked blacklist_files for testing Signed-off-by: Morris Jobke --- lib/public/Files/FileInfo.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/public/Files') diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php index b6718efba34..8eeb8df08ce 100644 --- a/lib/public/Files/FileInfo.php +++ b/lib/public/Files/FileInfo.php @@ -63,6 +63,12 @@ interface FileInfo { */ const MIMETYPE_FOLDER = 'httpd/unix-directory'; + /** + * @const \OCP\Files\FileInfo::BLACKLIST_FILES_REGEX Return regular expression to test filenames against (blacklisting) + * @since 12.0.0 + */ + const BLACKLIST_FILES_REGEX = '\.(part|filepart)$'; + /** * Get the Etag of the file or folder * -- cgit v1.2.3