[Openroad-users] CreateDirectory Bug?
gareth.2.edwards at bt.com
gareth.2.edwards at bt.com
Thu Nov 2 02:20:38 EST 2006
OR4.1SP3, Win2000
Hi All,
Glad to see the list back Paul! :o)
I have a problem with the CreateDirectory() method, which seems to be a
bug. Can someone confirm, or is it something I'm doing?
Below is an extract from the code. It simply checks if the directory
exists, if not, creates it. It does this, but if the directory does not
exist, it creates it, but also returns an error after creation. Surely
if it's created it, it would be success (ER_OK) - as per ORLR.pdf PG
467
-----
/*
** Check if the polling directory exists, if not, create it
*/
DirectoryExists = CurSession.DirectoryExists (Directory =
CurObject.PollDirectory);
IF DirectoryExists = FALSE THEN
ReturnStatus = CurSession.CreateDirectory (Directory =
CurObject.PollDirectory);
IF ReturnStatus = ER_FAIL THEN
CurObject.MessageText = 'Create Failed!';
RETURN;
ENDIF;
ENDIF;
-----
I checked if it was because there was a space in the directory name, but
with it removed, I still got the same results. As I did if it had a \ at
the end of the directory or not.
Just a matter of, not error checking the creation? (not happy about
doing).
Cheers,
Gareth Edwards
BT Global Services
tel: +44 (0)131 345 4671
email: gareth.2.edwards at bt.com
More information about the Openroad-users
mailing list