diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-05-19 14:15:49 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-05-19 14:15:49 -0400 |
commit | 41e2d64c86fffc3e507a1ad0788bcb498db2c640 (patch) | |
tree | 20a1cea6e03c1efb72c0a33bee7d9517e1c5c711 /lib/files/filesystem.php | |
parent | 0f314c14048b85a639ceb0c29e26f47e139e96c5 (diff) | |
download | nextcloud-server-41e2d64c86fffc3e507a1ad0788bcb498db2c640.tar.gz nextcloud-server-41e2d64c86fffc3e507a1ad0788bcb498db2c640.zip |
Add support for copying/moving folders between storages, move isIgnoredDir() to Filesystem
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r-- | lib/files/filesystem.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index d60d430d77c..99d87011df2 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -454,6 +454,19 @@ class Filesystem { } /** + * @brief check if the directory should be ignored when scanning + * NOTE: the special directories . and .. would cause never ending recursion + * @param String $dir + * @return boolean + */ + static public function isIgnoredDir($dir) { + if ($dir === '.' || $dir === '..') { + return true; + } + return false; + } + + /** * following functions are equivalent to their php builtin equivalents for arguments/return values. */ static public function mkdir($path) { |