ftp - ¿php ftp_delete can remove folder? -


the question is: can php ftp_delete() remove folder? have process uses ftp_delete() removing ftp files fear might accidentally remove folder if filename empty.

from manual:

"ftp_delete() deletes file specified path ftp server."

it doesn't delete folder, rmdir() does.

"rmdir — removes directory"

note:

attempts remove directory named dirname. directory must empty, , relevant permissions must permit this. e_warning level error generated on failure.


Comments

Popular posts from this blog

linux - Could not find a package configuration file provided by "Qt5Svg" -

simple.odata.client - Simple OData Client Unlink -