Check that file exists: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|SmallTalk}}: sp; formatting) |
||
Line 136: | Line 136: | ||
'/docs' isdir if '/docs exists and is a directory' print |
'/docs' isdir if '/docs exists and is a directory' print |
||
=={{header| |
=={{header|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 new fileExists: 'c:\serial'. |