FineUploader / server-examples

Server-side examples for the Fine Uploader library
https://fineuploader.com
MIT License
279 stars 204 forks source link

PHP - Recursive removing of directories doesn't work (as intended) and might delete wrong files/directories #36

Closed SpazzMarticus closed 6 years ago

SpazzMarticus commented 9 years ago

Recursive removing of files and directories did not work as intended (and might have deleted wrong files (!))

The recursive removing of directories and files did not use the parent-directory of previous recusion-calls. e.g. The recursion started at the "./foo"-directory and tried to delete "bar" - "bar" is an directory, so it has to recure. The recursion is called with "bar" only, so it would try to delete "./bar" instead of "./foo/bar". If "./bar" existed, it would delete the files in it. (!)

rnicholus commented 9 years ago

@feltnerm Can you take a closer look at this?