Skip Menu |
 

This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id: 70938
Status: resolved
Priority: 0/
Queue: File-Path

People
Owner: RICHE [...] cpan.org
Requestors: SHAW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 2.08
Fixed in: 2.10_001



Subject: POD: remove_tree() shouldn't be compared to del /s
Download (untitled) / with headers
text/plain 413b
The documentation for remove_tree could confuse some users: The remove_tree function deletes the given directories and any files and subdirectories they might contain, much like the Unix command rm -r or del /s on Windows. On NT based boxes (at least) rm -r != del /s. del /s will only delete files under the given dir -not directories. To delete the tree one would have to use rmdir /s or rd /s. -Skye
Download (untitled) / with headers
text/plain 887b
On Tue Sep 13 15:27:02 2011, SHAW wrote: Show quoted text
> The documentation for remove_tree could confuse some users: > > The remove_tree function deletes the given directories and any files > and subdirectories they might contain, much like the Unix command rm -r > or del /s on Windows. > > On NT based boxes (at least) rm -r != del /s. del /s will only delete > files under the given dir -not directories. > > To delete the tree one would have to use rmdir /s or rd /s. > > -Skye > > >
The confusing documentation is still present in File-Path version 2.09. References for Windows commands: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true del /s: "Deletes specified files from the current directory and all subdirectories. Displays the names of the files as they are being deleted." rmdir: "Removes (that is, deletes) a directory."
Fixed on this pull request: https://github.com/rpcme/File-Path/pull/7
Download (untitled) / with headers
text/plain 109b
This issue has been resolved in dev release http://search.cpan.org/~riche/File-Path/Path.pm version 2.10_001.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.