12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- namespace OCP;
- class Files {
-
- public static function rmdirr($dir) {
- return \OC_Helper::rmdirr($dir);
- }
-
- public static function getMimeType($path) {
- return \OC::$server->getMimeTypeDetector()->detect($path);
- }
-
- public static function searchByMime($mimetype) {
- return \OC\Files\Filesystem::searchByMime($mimetype);
- }
-
- public static function streamCopy($source, $target) {
- [$count, ] = \OC_Helper::streamCopy($source, $target);
- return $count;
- }
-
- public static function buildNotExistingFileName($path, $filename) {
- return \OC_Helper::buildNotExistingFileName($path, $filename);
- }
-
- public static function getStorage($app) {
- return \OC_App::getStorage($app);
- }
- }
|