while hdp and converter struggle to help me on chatterbox, I thought I'd ask this just in case we can't find a solution.

I have a script that needs to create a series of directories. I hand wrote something that would walk the path, creating each directory (if needed) and have also tried using File::Path's functions. both work fine, right up until I try to create this directory: '/blah/10'.

At this point, both mkdir and File::Path::mkpath die with $! set to "file exsists", etc. and sure enough, there's a file sitting there so that '/blah/10' would test successfully against -e, not -d. it's ~185K, filled with a bunch of hex and isn't there immediately before the mkdir executed (I've tested... rm -rf'd the entire directory beforehand as well).

'/blah/09' and '/blah/11' are made with no trouble prior to '/blah/10'. this is running on a solaris box. 'mkdir 10' from the command line works fine.

Anyone? Bueller? :)

In reply to freaky mkdir problem by markguy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.