Rod Butcher wrote:
> Do we need to bear in mind here that Perl, because of its Unix origin,
> considers a directory to be just a file containing a list of filenames ?
> So the distinction between file or directory need not be made ? Rather,
> "we have an entity in the file system named ...".
N
Foo Ji-Haw wrote:
>>-d could fail if a file exists with the same name as a dir you're
>>expecting to find.
>>
>
> Hmm, I am under the impression that no file can exist with the same name
> as a subdir in the same path.
That's not what I said. I said if you found a file that had the
same name
-d could fail if a file exists with the same name as a dir you're
expecting to find.
Hmm, I am under the impression that no file can exist with the same name
as a subdir in the same path.
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listser
$Bill Luebkert wrote:
Rod Butcher wrote:
Foo Ji-Haw wrote:
Dirk Bremer wrote:
What is the easiest method to detect whether or not a directory exists?
I will need to create the directory/subdirectory if it is not already
present. The file test -d does not seem to do the trick.
What's wrong
Rod Butcher wrote:
> Foo Ji-Haw wrote:
>
>>Dirk Bremer wrote:
>>
>>
>>>What is the easiest method to detect whether or not a directory exists?
>>>I will need to create the directory/subdirectory if it is not already
>>>present. The file test -d does not seem to do the trick.
>>
>>What's wrong wit
Foo Ji-Haw wrote:
Dirk Bremer wrote:
What is the easiest method to detect whether or not a directory exists?
I will need to create the directory/subdirectory if it is not already
present. The file test -d does not seem to do the trick.
What's wrong with -d? It' is not a file test. It's a test
Dirk Bremer wrote:
What is the easiest method to detect whether or not a directory exists?
I will need to create the directory/subdirectory if it is not already
present. The file test -d does not seem to do the trick.
What's wrong with -d? It' is not a file test. It's a test if the path
poi
At 11:13 AM 2/8/2006 -0600, Dirk Bremer wrote:
>What is the easiest method to detect whether or not a directory exists?
>I will need to create the directory/subdirectory if it is not already
>present. The file test -d does not seem to do the trick. Is there a
What's wrong with -d? It works for me
PROTECTED]
www.nisc.coop
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Dirk Bremer
> Sent: Wednesday, February 08, 2006 11:14
> To: perl-win32-users@listserv.ActiveState.com
> Subject: Testing for Directories
>
> Wh
On 2/8/06, Dirk Bremer <[EMAIL PROTECTED]> wrote:
> What is the easiest method to detect whether or not a directory exists?
> I will need to create the directory/subdirectory if it is not already
> present. The file test -d does not seem to do the trick.
Can you give an example where -d fails?
--
[EMAIL PROTECTED] wrote:
> What is the easiest method to detect whether or not a directory
> exists? I will need to create the directory/subdirectory if it is not
> already present. The file test -d does not seem to do the trick. Is
> there a quick and low-overhead method of doing this without actu
What is the easiest method to detect whether or not a directory exists?
I will need to create the directory/subdirectory if it is not already
present. The file test -d does not seem to do the trick. Is there a
quick and low-overhead method of doing this without actually trying to
open the directory
12 matches
Mail list logo