소스 검색

Merge pull request #7969 from johnstevenson/remove-junction-tweak

Remove junctions with PHP rather than system rmdir
Jordi Boggiano 6 년 전
부모
커밋
603fe500f9
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/Composer/Util/Filesystem.php

+ 1 - 3
src/Composer/Util/Filesystem.php

@@ -692,9 +692,7 @@ class Filesystem
         if (!$this->isJunction($junction)) {
             throw new IOException(sprintf('%s is not a junction and thus cannot be removed as one', $junction));
         }
-        $cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape($junction));
-        clearstatcache(true, $junction);
 
-        return ($this->getProcess()->execute($cmd, $output) === 0);
+        return $this->rmdir($junction);
     }
 }