Feb 2, 2006 #1 BaharPamuk Programmer Joined Jan 30, 2006 Messages 16 Location TR Hi all, Is there any way to control that a directory exists or not in a given directory? Thanks.
Feb 2, 2006 #2 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB What do you mean? Make sure it exists? Make sure nobody can move it somewhere else? -- Upvote 0 Downvote
Feb 2, 2006 Thread starter #3 BaharPamuk Programmer Joined Jan 30, 2006 Messages 16 Location TR Just like checking if a file exists, is it possible to check if a directory exists? Upvote 0 Downvote
Feb 2, 2006 #4 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB Use stat(), just like you would on a file. http://www.hmug.org/man/2/stat.php -- Upvote 0 Downvote
Feb 6, 2006 Thread starter #5 BaharPamuk Programmer Joined Jan 30, 2006 Messages 16 Location TR Thanks.. Upvote 0 Downvote