diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-06 22:02:16 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-06 22:02:16 +0200 |
commit | 5d55c709dddad44984446efa49ceb7084fc16b3f (patch) | |
tree | fd7d0a280ab436eb40d89a3acc9e00ee8ed284f4 /lib/public/files.php | |
parent | 2edf59c026ef7c59551072ab5bfcdac576e3d65b (diff) | |
download | nextcloud-server-5d55c709dddad44984446efa49ceb7084fc16b3f.tar.gz nextcloud-server-5d55c709dddad44984446efa49ceb7084fc16b3f.zip |
some more documentation cleanups. much more is needed.
And greeting from the Atlanta airport. ;-)
Diffstat (limited to 'lib/public/files.php')
-rw-r--r-- | lib/public/files.php | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/lib/public/files.php b/lib/public/files.php index f2153f33b90..e11ab81e16f 100644 --- a/lib/public/files.php +++ b/lib/public/files.php @@ -38,7 +38,7 @@ class Files { * @param string $dir path to the folder * */ - static function rmdirr($dir) { + static function rmdirr( $dir ) { \OC_Helper::rmdirr( $dir ); } @@ -49,18 +49,19 @@ class Files { * @return string * does NOT work for ownClouds filesystem, use OC_FileSystem::getMimeType instead */ - static function getMimeType($path){ + static function getMimeType( $path ){ return(\OC_Helper::getMimeType( $path )); } + /** * copy the contents of one stream to another * @param resource source * @param resource target * @return int the number of bytes copied */ - public static function streamCopy($source,$target){ - return(\OC_Helper::streamCopy($source,$target)); + public static function streamCopy( $source, $target ){ + return(\OC_Helper::streamCopy( $source, $target )); } @@ -71,10 +72,11 @@ class Files { * * temporary files are automatically cleaned up after the script is finished */ - public static function tmpFile($postfix=''){ - return(\OC_Helper::tmpFile($postfix)); + public static function tmpFile( $postfix='' ){ + return(\OC_Helper::tmpFile( $postfix )); } + /** * create a temporary folder with an unique filename * @return string @@ -85,6 +87,7 @@ class Files { return(\OC_Helper::tmpFolder()); } + /** * Adds a suffix to the name in case the file exists * @@ -92,23 +95,13 @@ class Files { * @param $filename * @return string */ - public static function buildNotExistingFileName($path, $filename){ - return(\OC_Helper::buildNotExistingFileName($path, $filename)); + public static function buildNotExistingFileName( $path, $filename ){ + return(\OC_Helper::buildNotExistingFileName( $path, $filename )); } - - - - - - - - - - } ?> |