gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

README.md (1075B)


      1 Filesystem Component
      2 ====================
      3 
      4 Filesystem provides basic utility to manipulate the file system:
      5 
      6 ```php
      7 <?php
      8 
      9 use Symfony\Component\Filesystem\Filesystem;
     10 
     11 $filesystem = new Filesystem();
     12 
     13 $filesystem->copy($originFile, $targetFile, $override = false);
     14 
     15 $filesystem->mkdir($dirs, $mode = 0777);
     16 
     17 $filesystem->touch($files, $time = null, $atime = null);
     18 
     19 $filesystem->remove($files);
     20 
     21 $filesystem->exists($files);
     22 
     23 $filesystem->chmod($files, $mode, $umask = 0000, $recursive = false);
     24 
     25 $filesystem->chown($files, $user, $recursive = false);
     26 
     27 $filesystem->chgrp($files, $group, $recursive = false);
     28 
     29 $filesystem->rename($origin, $target);
     30 
     31 $filesystem->symlink($originDir, $targetDir, $copyOnWindows = false);
     32 
     33 $filesystem->makePathRelative($endPath, $startPath);
     34 
     35 $filesystem->mirror($originDir, $targetDir, \Traversable $iterator = null, $options = array());
     36 
     37 $filesystem->isAbsolutePath($file);
     38 ```
     39 
     40 Resources
     41 ---------
     42 
     43 You can run the unit tests with the following command:
     44 
     45     $ cd path/to/Symfony/Component/Filesystem/
     46     $ composer install
     47     $ phpunit