Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jul 28, 2012
  1. @pborreli

    Fixed Phpdoc

    pborreli authored
Commits on Jul 10, 2012
  1. @aharonp
Commits on Jun 19, 2012
  1. @ErikTrapman
Commits on Jun 18, 2012
  1. @romainneutron
  2. @romainneutron

    [Filesystem] Added few new behaviors:

    romainneutron authored
     - add a IOException and a main filesystem exception interface
     - whenever an action fails, an IOException is thrown
     - add access to the second and third arguments of touch() function
     - add a recursive option for chmod()
     - add a chown() method
     - add a chgrp() method
     - Switch the 'unlink' global function in Filesystem::symlink to Filesystem::remove.
    
    BC break: mkdir() function now throws exception in case of failure instead of returning Boolean value.
Commits on Jun 16, 2012
  1. @aerialls
Commits on Jun 13, 2012
  1. @fabpot

    merged branch SamsonIT/remove_symlink_on_windows (PR #4565)

    fabpot authored
    Commits
    -------
    
    fc3ebb8 [FileSystem] added if-windows check
    0b58828 [FileSystem] remove symlinks under windows
    
    Discussion
    ----------
    
    [FileSystem] remove symlinks under windows
    
    Bug fix: yes
    Feature addition: no
    Backwards compatibility break: no
    Symfony2 tests pass: yes
    
    When installing assets on Windows with symlink, the following error occurs when symlink-folders already exist. This PR makes sure symlink-folders are removed under Windows.
    
    ```
    $ app/console assets:install web --symlink
    Installing assets using the symlink option
    Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
    
      [ErrorException]
      Warning: symlink(): Cannot create symlink, error code(1314) in C:\workspace\erik\roompot\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php line 167
    
    assets:install [--symlink] [--relative] target
    ```
    
    ---------------------------------------------------------------------------
    
    by travisbot at 2012-06-13T09:00:42Z
    
    This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1608541) (merged 0b58828 into 37550d2).
    
    ---------------------------------------------------------------------------
    
    by travisbot at 2012-06-13T14:39:32Z
    
    This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1611288) (merged fc3ebb8 into 0f67ca8).
  2. @ErikTrapman
  3. @stealth35
  4. @ErikTrapman
Commits on May 15, 2012
  1. @fabpot

    fixed phpdoc @param alignment

    fabpot authored
  2. @fabpot

    added @ to all chmod() calls to avoid PHP warnings (operation not per…

    fabpot authored
    …mitted) when using CIFS or NTFSa (closes #2125)
Commits on Apr 20, 2012
  1. @fabpot

    merged branch michal-pipa/symlink-fix (PR #4012)

    fabpot authored
    Commits
    -------
    
    94bee7a [Filesystem] symlink() creates target directories
    
    Discussion
    ----------
    
    [Filesystem] symlink() creates target directories
    
    Bug fix: yes
    Feature addition: no
    Backwards compatibility break: no
    Symfony2 tests pass: yes [![Build Status](https://secure.travis-ci.org/michal-pipa/symfony.png?branch=symlink-fix)](http://travis-ci.org/michal-pipa/symfony)
    Fixes the following tickets: #3967
    Todo: -
    
    Changed symlink() method behavior to recursively create target directory if it does not exist. It makes Filesystem component methods more consistent since copy() does the same. It is also more convenient.
    
    Also mirror() fails to create symlink in non-existent directory (if we don't want to change symlink(), than we need to fix mirror()).
    
    Fixes: #3967
Commits on Apr 19, 2012
  1. @michalpipa
  2. @vicb

    Fix umasks in chmod() calls

    vicb authored
  3. @Seldaek
  4. @Seldaek
Commits on Apr 11, 2012
  1. @fabpot

    merged branch jakzal/FilesystemMirrorCleanup (PR #3844)

    fabpot authored
    Commits
    -------
    
    efad5d5 [Filesystem] Prevented infiite loop on windows while calling mirror on symlink. Added test for mirroring symlinks.
    
    Discussion
    ----------
    
    [Filesystem] Prevented infinite loop on windows while mirrorring symlinks
    
    First check for filetype in *mirror()* method is:
    
        if (is_link($file)) {
            $this->symlink($file, $target);
    
    later we see:
    
        } elseif (is_file($file) || ($copyOnWindows && is_link($file))) {
            $this->copy($file, $target, isset($options['override']) ? $options['override'] : false);
    
    The later check for links on windows (*$copyOnWindows && is_link($file)*) won't ever get called. Calling *symlink()* in *mirror()* on windows would lead to calling *mirror()* again.
    
    Note that I didn't actually try running it on windows platform. I added a test for mirroring symlinks (non-windows test). I think it'd be good if someone added some windows specific tests to this class.
    
    I also modified the target path:
    
        $target = $targetDir.'/'.str_replace($originDir.DIRECTORY_SEPARATOR, '', $file->getPathname());
    
    It didn't use DIRECTORY_SEPARATOR and is equivalent to:
    
        $target = str_replace($originDir, $targetDir, $file->getPathname());
    
    Bug fix: yes
    Feature addition: no
    Backwards compatibility break: no
    Symfony2 tests pass: yes
    Fixes the following tickets: ~
    Todo: ~
Commits on Apr 10, 2012
  1. @alessandro1997
Commits on Apr 9, 2012
  1. @alessandro1997
  2. @alessandro1997
  3. @jakzal

    [Filesystem] Prevented infiite loop on windows while calling mirror o…

    jakzal authored
    …n symlink. Added test for mirroring symlinks.
Commits on Apr 7, 2012
  1. @jakzal

    [Filesystem] Fixed relative path calculation for end path which is a …

    jakzal authored
    …subdirectory of the start path.
  2. @jakzal

    [Filesystem] Fixed relative path calculation for paths with various c…

    jakzal authored
    …ombinations of trailing directory separators.
  3. @jakzal
Commits on Apr 6, 2012
  1. @jakzal
  2. @jakzal

    [Filesystem] Fixed a bug in remove being unable to remove symlinks to…

    jakzal authored
    … unexisting file or directory.
  3. @jakzal
Commits on Dec 22, 2011
  1. @willdurand
Something went wrong with that request. Please try again.