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

Report information
The Basics
Id:
70938
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Unimportant
Broken in:
2.08
Fixed in:
2.10_001



Subject: POD: remove_tree() shouldn't be compared to del /s
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 413
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-30704-1429148286-725.70938-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 887
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."
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-30704-1429148286-725.70938-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-30704-1429148286-725.70938-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-4933-1430597970-761.70938-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 69
Fixed on this pull request: https://github.com/rpcme/File-Path/pull/7
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-10114-1435333930-1461.70938-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 109
This issue has been resolved in dev release http://search.cpan.org/~riche/File-Path/Path.pm version 2.10_001.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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