1

Topic: How correctly to delete recursively a directory together with all to files

Dear gurus - here actually a subject.
Question - as it correctly to make - that worked under all axes
Thanks

2

Re: How correctly to delete recursively a directory together with all to files

system ("rm-rf") not to offer smile

3

Re: How correctly to delete recursively a directory together with all to files

Tasks "that something worked under all AXES" to me remind philosophers' stone searches.
In my opinion, the result will be same.

4

Re: How correctly to delete recursively a directory together with all to files

readdir () + undelete () in a recursion not to offer?.

5

Re: How correctly to delete recursively a directory together with all to files

semen.s.semen;
Conceptually it is tree traversal in depth with removal of nodes (files and directories).
What here the new? Anything.
If to put the problem of optimization of this process - that we from file API inevitably we approach to arguing
Specific file systems NTFS/ext4 and their singularities.

6

Re: How correctly to delete recursively a directory together with all to files

I thought can eat ready libraries

7

Re: How correctly to delete recursively a directory together with all to files

semen.s.semen;
https://en.cppreference.com/w/cpp/filesystem/remove

8

Re: How correctly to delete recursively a directory together with all to files

The strange question... It is normal bypass of any tree structure of the data -  on left side,  on right...

9

Re: How correctly to delete recursively a directory together with all to files

semen.s.semen wrote:

I thought can eat ready libraries

Certainly is! This "library" is called "operating system".

10

Re: How correctly to delete recursively a directory together with all to files

Thanks.
The adequate answer in trolling sea.

11

Re: How correctly to delete recursively a directory together with all to files

semen.s.semen wrote:

I thought can eat ready libraries

std:: filesystem