[Openroad-users] CreateDirectory Bug?

Kim Ginnerup kgi at bording.dk
Sat Nov 4 19:50:57 EST 2006


I think we have submitted this a long time back.
It is regarded as a documentation bug.

Kim

-----Oprindelig meddelelse-----
Fra: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com] På vegne af gareth.2.edwards at bt.com
Sendt: 1. november 2006 16:21
Til: openroad-users at peerlessit.com
Emne: [Openroad-users] CreateDirectory Bug?

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


_______________________________________________
Openroad-users mailing list
Openroad-users at peerlessit.com
http://peerlessit.com/mailman/listinfo/openroad-users



More information about the Openroad-users mailing list