Trying to delete a directory and his hidden files in linux with php -


from command line when use:

rm -fr /path/dir/{*,.??*} 

i can delete files in /path/dir including hidden files, when try make php code:

system('rm -fr /path/dir/{*,.??*}') nothing happens.

i can't find why doesn't works

finally this:

system('rm -fr /path/dir && mkdir /path/dir); 

i removed directory files , after created directory. , work done.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -