Check that file exists: Difference between revisions

Undo revision 293782 by EggplantBill (talk)
(Undo revision 293785 by EggplantBill (talk))
(Undo revision 293782 by EggplantBill (talk))
Line 2,314:
end func;</lang>
 
=={{header|SensetalkSidef}}==
<lang sensetalkruby># Here
putsay file(Dir.cwd " + %f'input.txt"' -> existsis_file);
say (Dir.cwd + %d'docs' -> is_dir);
put file "docs" exists
 
# Root
put file "/input.txt" exists
say (Dir.root + %f'input.txt' -> is_file);
put file "/docs" exists
say (Dir.root + %d'docs' -> is_dir);</lang>
</lang>
NOTE: To check only for existence, use the method ''exists''
 
=={{header|Slate}}==