NAME
Mac::Path::Util - convert between darwin and Mac paths
SYNOPSIS
use Mac::Path::Util;
my $path = Mac::Path::Util->new( "/Users/foo/file.txt" );
my $mac_path = $path->mac_path;
DESCRIPTION
THIS IS ALPHA SOFTWARE. SOME THINGS ARE NOT FINISHED.
Convert between darwin (unix) and Mac file paths.
This is not as simple as changing the directory separator. The Mac path has the volume name in it, whereas the darwin path leaves of the startup volume name because it is mounted as /.
Colons ( ":" ) in the darwin path become / in the Mac path, and forward slashes in the Mac path become colons in the darwin path.
Mac paths do not have a leading directory separator for absolute paths.
Normally, Mac paths that end in a directory name have a trailing colon, but this module cannot necessarily verify that since you may want to convert paths.
Methods
- new( PATH [, HASH ] )
-
The optional anonymous hash can have these values:
type DARWIN or MACOS (explicitly state which sort of path with these symbolic constants) startup the name of the startup volume (if not defined, tries to use the startup volume on the local machine)
Accessor methods
- type
- path
- volume
- startup
- mac_path
- darwin_path
AUTHOR
brian d foy, >bdfoy@cpan.org>
COPYRIGHT
Copyright 2002, brian d foy, All rights reserved
You may use this package under the same terms as Perl itself