Skip Menu |

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

Report information
The Basics
Id: 7267
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: File-Remove

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Support for Trashcan or Recycle Bin
Some operating systems like Mac and Windows have a trash can. Why not an option that is os-independent to use trash can when unlinking files. It could dynamically load the module appropriate to the operating system.
[guest - Thu Aug 5 16:24:14 2004]: Show quoted text
> Some operating systems like Mac and Windows have a trash can. Why not > an option that is os-independent to use trash can when unlinking > files. It could dynamically load the module appropriate to the > operating system.
Mm, that'd be an interesting option to have. If one was unlinking files to recover disk-space, a counter-intuitive result would occur -- and Perl isn't well-known for integrating with the system's trashcan. Still, it could happen; any suggestions regarding programmatic APIs available through Perl to do this are welcome. - R.
RT-Send-CC: ADAMK [...] cpan.org
[guest - Thu Aug 5 16:24:14 2004]: Show quoted text
> Some operating systems like Mac and Windows have a trash can. Why not > an option that is os-independent to use trash can when unlinking > files. It could dynamically load the module appropriate to the > operating system.
undelete() has been introduced in the latest version of File::Remove (currently 0.24). It is functional under Win32 and OS X, and requires additional modules from CPAN (Win32::FileOp and Mac::Glue respectively). Tests pass under OS X; Win32-specific failures will be addressed as they arise. - R.