$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
-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
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 as a
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
Not
[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
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?
--
It turns out that in a very long pathname that I had one-byte that was
incorrect that was causing the file-test -d operator to fail, rightly
so. My mistake!
Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO
- USA Central Time Zone
636-755-2652 fax 636-755-2503
[EMAIL
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.
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
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
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 with -d? It' is not a
11 matches
Mail list logo