Check that file exists: Difference between revisions

Content added Content deleted
No edit summary
Line 109: Line 109:
os.path.exists("docs")
os.path.exists("docs")
os.path.exists("/docs")
os.path.exists("/docs")

==[[Smalltalk]]==
[[Category:Smalltalk]]

"Smalltalk has no notion of 'current directory' because Smalltalk isn't tied to the shell that created it."

FileDirectory new fileExists: 'c:\serial'.

(FileDirectory on: 'c:\') directoryExists: 'docs'.


==[[Tcl]]==
==[[Tcl]]==