User Profile

Collapse

Profile Sidebar

Collapse
new1234
new1234
Last Activity: Mar 31 '08, 11:35 AM
Joined: Dec 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I think it's because I may or may not have subdirectories that I want to make too - I caved and used
    [code=perl]
    system "mkdir -p $directory" || print $!;
    [/code]
    which works very nicely.. I'd still be interested in any alternative solutions as this seems a bit clumsy to me.
    Cheers
    p.s. i'm also struggling to remove the ./$directory that i created above (oops). Command line returns "directory:...
    See more | Go to post

    Leave a comment:


  • Hi, I'm actually having the same problem..
    when I run:
    Code:
    print "making directory ";
    print $directory;
    print "\n";
    
    mkdir($directory,0777) ||  print $!;
    I get the output 'No such file or directory'.
    I've tried this:
    Code:
    print "making directory ";
    print $directory;
    print "\n";
    $directory="\"".$directory."\"";
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...