[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Porting File::PathConvert



On Wed, Feb 03, 1999 at 03:02:30PM -0500, Barrie Slaymaker wrote:
} Should "volume:folder1::folder2" resolve to "volume:folder2" (presuming
} we ignore the existance of aliases :-)?

That's fine.

} 
} Is it valid to move from one volume to another using ::? The reason
} I ask is that it isn't under Win32 or VMS, or with URLs. So it's
} easier for me to disallow it. It's also a possible safety problem
} if Mac perl hackers would normally expect to be blocked from doing
} this by the OS's file handling routines.

Barring the traversal of a symbolic link, it's impossible to start on
one volume and wind up on another.  There is no "root of the
filesystem".  Each partition is an independent file system.

} 
} OTOH, it's more unix-like to allow it. If I do, But then I need to 
} deal with the special case of _not_ allowing
} "volume1:folder1:::volume2:folder2" => "volume2:folder2"

Not possible unless folder1 is actually a symbolic link (== alias in
MacOS speak).

} 
} And, as file spec, does "" refer to root, or to the cwd?

Say what?  File::Spec::rootdir returns '' (except under MacPerl
iteslf) because there is no root.  Is that what you mean?  (Under
MacPerl, it returns the startup volume, which isn't the root directory
but is useful behavior.)


  
} 
} Thanks,
} 
} Barrie

-- 
Paul Schinder
schinder@pobox.com

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch