develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [ID 20010111.021] (builtin)mkdir and File::Path::mkpath problem

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
January 16, 2001 20:09
Subject:
Re: [ID 20010111.021] (builtin)mkdir and File::Path::mkpath problem
Message ID:
20010116220852.B21462@chaos.wustl.edu
On Tue, Jan 16, 2001 at 10:07:15PM -0600, Craig A. Berry wrote:
> At 9:21 PM -0600 1/16/01, Jarkko Hietaniemi wrote:
> >
> >I guess we could snip away a trailing slash.  How about filesystems
> >with-non-slash element separators, any experience/opinions, anyone?
> 
>  From vms/vms.c:
> 
> /*{{{int my_mkdir(char *,Mode_t)*/
> int
> my_mkdir(char *dir, Mode_t mode)
> {
>    STRLEN dirlen = strlen(dir);
>    dTHX;
> 
>    /* zero length string sometimes gives ACCVIO */
>    if (dirlen == 0) return -1;
> 
>    /* CRTL mkdir() doesn't tolerate trailing /, since that implies
>     * null file name/type.  However, it's commonplace under Unix,
>     * so we'll allow it for a gain in portability.
>     */

Ha!  VMS is truly a trailblazer! :-)

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About