ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] checking to see if directory exists
by Michael Bahr other posts by this author
Feb 7 2008 9:16AM messages near this date
view in the new Beta List Site
[Activetcl] checking to see if directory exists | Re: [Activetcl] checking to see if directory exists
Hi Gene, have you looked at the file command?

if {[file isdirectory foo]} {
  # this is a directory
} else {
  # not a directory
}

From the Tcl manual:
file isdirectory name
    Returns 1 if file name is a directory, 0 otherwise.

Hth, Mike...

________________________________

	From: activetcl-bounces@[...].com
[mailto:activetcl-bounces@[...].com] On Behalf Of Gene
Osteen
	Sent: Thursday, February 07, 2008 11:31 AM
	To: activetcl@[...].com
	Subject: [Activetcl] checking to see if directory exists
	
	

	All,

	            Using the FTP that comes with tcllib what is the
best way to check if a remote directory exits? I am thinking I may have
to use Quote to do this but am not sure.

	 

	Gene Osteen

	803-649-7486

	 

	Confidentiality Notice: The electronic mail and/or documents
accompanying this transmission contain confidential information
belonging to the sender, which is legally privileged. The information is
intended only for the individual's) or entity named above. If you are
not the intended recipient you are hereby notified that any disclosure,
copying, distribution or taking of any action in reliance on the
contents of this information is strictly prohibited. If you have
received this transmission in error, please immediately notify us by
email or telephone to arrange for return or to destroy the original
document. Thank You.

	 

	 

_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Gene Osteen
Michael Bahr
Larry W. Virden

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved