Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-15-2005, 06:02 AM   #1
LQ Newbie
Registered: Jan 2005
Location: malaysia
Posts: 18

Rep: Reputation: 0
how to check existing directory?

hye all...
my quetion is quite simple...but donno how to go with that? my script, there will be checking for existing folder..if that folder not exist, have to create new one..
if <folder-x> not exist then
mkdir <folder-x>
continue task....

i dont know how to check if the folder exist or not..
Old 04-15-2005, 06:09 AM   #2
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
See this thread:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash - rename directory to overwrite existing LarsWestergren Linux - Newbie 18 04-04-2013 03:07 PM
Check Directory Size? Echo Kilo Linux - General 2 08-18-2005 07:53 AM
How does one force directory permissions for existing/new files salieg Linux - Newbie 3 05-12-2004 07:58 AM
Moving existing directory to new partition? chris8myshoe Linux - General 3 02-04-2004 09:48 PM
Mounting existing directory Mikhail_16 Linux - Newbie 2 11-17-2003 06:06 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration