Check that file exists: Difference between revisions
Content added Content deleted
(added Fortran) |
|||
Line 220: | Line 220: | ||
The ''os.path.exists'' method will return True if a path exists False if it does not. |
The ''os.path.exists'' method will return True if a path exists False if it does not. |
||
<python> |
|||
import os |
import os |
||
Line 226: | Line 227: | ||
os.path.exists("docs") |
os.path.exists("docs") |
||
os.path.exists("/docs") |
os.path.exists("/docs") |
||
</python> |
|||
=={{header|Raven}}== |
=={{header|Raven}}== |