Skip to content

Deleting a folder with subfolder fails #47

@humdingerb

Description

@humdingerb

Removing a folder with some files directly in it works, it doesn't if these files are in a subfolder. Then it misses the first file. For example, if you have this:

Folder/Subfolder/01.mp3
Folder/Subfolder/02.mp3
Folder/Subfolder/03.mp3

If you delete 'Folder', only 02.mp3 and 03, mp3 are deleted and Folder/Subfolder/01.mp3 remains.

I tracked it down a bit, but I'm too lame to find the fix...
It seems the pathList at https://github.com/HaikuArchives/FtpPositive/blob/master/src/FTPLooper.cpp#L733 that gets created in ListRDirList() (and maybe also RecurseDirList() ?) is missing the entries for the first file (or files, depending on the level of subdirs, I suppose).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughacktoberfestIssues proposed to Hacktoberfest participants

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions