@@ 980-986 (lines=7) @@ | ||
977 | * @param string $dir Virtual URL (or storage path) of directory to clean |
|
978 | * @return Status |
|
979 | */ |
|
980 | public function quickCleanDir( $dir ) { |
|
981 | $status = $this->newGood(); |
|
982 | $status->merge( $this->backend->clean( |
|
983 | [ 'dir' => $this->resolveToStoragePath( $dir ) ] ) ); |
|
984 | ||
985 | return $status; |
|
986 | } |
|
987 | ||
988 | /** |
|
989 | * Import a batch of files from the local file system into the repo. |
|
@@ 1337-1345 (lines=9) @@ | ||
1334 | * @param string $dir Virtual URL (or storage path) of directory to clean |
|
1335 | * @return Status |
|
1336 | */ |
|
1337 | public function cleanDir( $dir ) { |
|
1338 | $this->assertWritableRepo(); // fail out if read-only |
|
1339 | ||
1340 | $status = $this->newGood(); |
|
1341 | $status->merge( $this->backend->clean( |
|
1342 | [ 'dir' => $this->resolveToStoragePath( $dir ) ] ) ); |
|
1343 | ||
1344 | return $status; |
|
1345 | } |
|
1346 | ||
1347 | /** |
|
1348 | * Checks existence of a a file |