SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
DirExists

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
DirExists
Author Message
thuan



Joined: 29 Aug 2002
Posts: 22

Post DirExists Reply with quote

I'm finding that DirExists returns a TRUE value when provided an
empty string, contradictory to what the documentation says.
Can you verify this?

I'm running vers.3.2.3
Excerpt from the documentation:

Return value: Boolean. Returns True if the directory exists directory and False otherwise.
DirExists statement also returns False if dir is an invalid name or an empty string.


Fri Sep 13, 2002 11:37 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: DirExists Reply with quote

I did some testing and also found out that both DirExists and isDir
return True for an empty string.

A workaround for this isssue is to use FileExists which works well with both files and directories.
FileExists correctly returns False if used with an empty string.

: I'm finding that DirExists returns a TRUE value when provided an
: empty string, contradictory to what the documentation says.
: Can you verify this?

: I'm running vers.3.2.3
: Excerpt from the documentation: Return value: Boolean. Returns True if the
: directory exists directory and False otherwise.
: DirExists statement also returns False if dir is an invalid name or an empty
: string.

Fri Sep 13, 2002 12:51 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.