Check that file exists: Difference between revisions
Content added Content deleted
Line 515: | Line 515: | ||
require(file.isDirectory(), fn { `$file is not a directory!` }) |
require(file.isDirectory(), fn { `$file is not a directory!` }) |
||
}</lang> |
}</lang> |
||
=={{header|Elena}}== |
|||
<lang elena> |
|||
#import system. |
|||
#import system'io. |
|||
#import extensions. |
|||
#symbol program = |
|||
[ |
|||
console writeLine:"""input.txt"" file ":("input.txt" file_path is &available iif:"exists":"not found"). |
|||
console writeLine:"""\input.txt"" file ":("\input.txt" file_path is &available iif:"exists":"not found"). |
|||
console writeLine:"""docs"" directory ":("docs" directory_path is &available iif:"exists":"not found"). |
|||
console writeLine:"""\docs"" directory ":("\docs" directory_path is &available iif:"exists":"not found"). |
|||
].</lang> |
|||
=={{header|Elixir}}== |
=={{header|Elixir}}== |