-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive deletion of directories #47
Comments
Hey, thanks for opening this issue. print_r($this->isDir("root/content/subdir")); Check this and see what result you will get, it must be |
I think, it is obvious. You can't call rmdir because it won't delete directories which are not empty. |
The |
Don't know, why you closed this without looking into your code:
There is the recursive call to removeDir missing, in fact you call rmdir which won't works |
I closed the issue because of no response from your end, and I explained that the Please share the output of this command:
You have to know that some FTP servers may have different implementations of the FTP specification and its extensions, so we are not expecting our library methods to work perfectly with all FTP servers. If you share additional info we can guess what your FTP server is doing differently to update our code and finally fix the issue. thanks for your understanding! |
Tried to remove a directory structure like this:
-root
--content
----file1
----file2
----subdir
------file4
------file3
and the method FtpClient::removeDir(directory) doesn't jumps in to the subdir and as a result the directory content will not be deleted as intended.
Change line 373 in mentioned class to:
$this->removeDir($fileInfo['path']);
will solve this issue. Or miss I something?
The text was updated successfully, but these errors were encountered: