Check that file exists: Difference between revisions
Content added Content deleted
JsfasdF256 (talk | contribs) (omit from Scratch) |
(Add QB64) |
||
Line 2,420: | Line 2,420: | ||
The more generic [https://docs.python.org/3/library/os.path.html#os.path.exists <code>os.path.exists(path)</code>] function will return True if the path exists, being it either a regular file or a directory. |
The more generic [https://docs.python.org/3/library/os.path.html#os.path.exists <code>os.path.exists(path)</code>] function will return True if the path exists, being it either a regular file or a directory. |
||
=={{header|QB64}}== |
|||
<lang qbasic>$NOPREFIX |
|||
PRINT DIREXISTS("docs") |
|||
PRINT DIREXISTS("\docs") |
|||
PRINT FILEEXISTS("input.txt") |
|||
PRINT FILEEXISTS("\input.txt")</lang> |
|||
=={{header|R}}== |
=={{header|R}}== |