mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fixed bug with Filesystem::removeFolder() where it wouldn't delete files that ended in '.'
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112860 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2c60a67e09
commit
7170f386fd
@ -42,7 +42,7 @@ class Filesystem extends Object {
|
|||||||
$dir = opendir( $folder );
|
$dir = opendir( $folder );
|
||||||
|
|
||||||
while( $file = readdir( $dir ) )
|
while( $file = readdir( $dir ) )
|
||||||
if( !preg_match( '/\.{1,2}$/', $file ) )
|
if( !preg_match( '/^\.{1,2}$/', $file ) )
|
||||||
self::removeFolder( $folder.'/'.$file );
|
self::removeFolder( $folder.'/'.$file );
|
||||||
|
|
||||||
closedir($dir);
|
closedir($dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user