Mac::Path::Util 0.23 reviewDownload
Mac::Path::Util is a Perl module that can convert between darwin and Mac paths. SYNOPSIS use Mac::Path::Util;
Mac::Path::Util is a Perl module that can convert between darwin and Mac paths.
my $path = Mac::Path::Util->new( "/Users/foo/file.txt" );
my $mac_path = $path->mac_path;
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 off the startup volume name because it is mounted as /.
Mac::Path::Util can optionally use Mac::Carbon to determine the real startup volume name (off by default) if you have installed Mac::Carbon. You can use this module on other platforms too. Once the module has looked up the volume name, it caches it. If you want to reset the cache, use the clear_startup() method.
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.
Mac::Path::Util 0.23 search tags