diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
commit | 4f5b44bd3bd490309eb2ba7b44df4769816ba729 (patch) | |
tree | 6cefe170dfe0a5a361cb1e2d1fc4d580a3316d02 /vendor/symfony/filesystem/Symfony/Component/Filesystem/README.md | |
parent | 2b840e0cfb63a453bea67a98541f3df9c273c5f5 (diff) | |
download | wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.gz wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.zst wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.zip |
twig implementation
Diffstat (limited to 'vendor/symfony/filesystem/Symfony/Component/Filesystem/README.md')
-rw-r--r-- | vendor/symfony/filesystem/Symfony/Component/Filesystem/README.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/vendor/symfony/filesystem/Symfony/Component/Filesystem/README.md b/vendor/symfony/filesystem/Symfony/Component/Filesystem/README.md new file mode 100644 index 00000000..94ac1469 --- /dev/null +++ b/vendor/symfony/filesystem/Symfony/Component/Filesystem/README.md | |||
@@ -0,0 +1,45 @@ | |||
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->chmod($files, $mode, $umask = 0000, $recursive = false); | ||
22 | |||
23 | $filesystem->chown($files, $user, $recursive = false); | ||
24 | |||
25 | $filesystem->chgrp($files, $group, $recursive = false); | ||
26 | |||
27 | $filesystem->rename($origin, $target); | ||
28 | |||
29 | $filesystem->symlink($originDir, $targetDir, $copyOnWindows = false); | ||
30 | |||
31 | $filesystem->makePathRelative($endPath, $startPath); | ||
32 | |||
33 | $filesystem->mirror($originDir, $targetDir, \Traversable $iterator = null, $options = array()); | ||
34 | |||
35 | $filesystem->isAbsolutePath($file); | ||
36 | ``` | ||
37 | |||
38 | Resources | ||
39 | --------- | ||
40 | |||
41 | You can run the unit tests with the following command: | ||
42 | |||
43 | $ cd path/to/Symfony/Component/Filesystem/ | ||
44 | $ composer.phar install --dev | ||
45 | $ phpunit | ||