LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-15-2005, 05:02 AM   #1
izza_azhar
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?
ok..in my script, there will be checking for existing folder..if that folder not exist, have to create new one..
eg:
if <folder-x> not exist then
mkdir <folder-x>
else
continue task....

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

Rep: Reputation: 32
See this thread: http://www.linuxquestions.org/questions/history/303371
 
  


Reply



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 02:07 PM
Check Directory Size? Echo Kilo Linux - General 2 08-18-2005 06:53 AM
How does one force directory permissions for existing/new files salieg Linux - Newbie 3 05-12-2004 06:58 AM
Moving existing directory to new partition? chris8myshoe Linux - General 3 02-04-2004 08:48 PM
Mounting existing directory Mikhail_16 Linux - Newbie 2 11-17-2003 05:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:19 AM.

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