Is there an easy way in Julia to check if a file exists in the current working directory (something like test = os.path.isfile("foo.txt") in Python or inquire(file = "foo.txt", exist = test) in Fortran)?
test = os.path.isfile("foo.txt")
inquire(file = "foo.txt", exist = test)
Julia has isfile() for checking a regular file:
isfile()
julia> isfile("foo.txt") false shell> touch foo.txt julia> isfile("foo.txt") true
As the documentation :
Returns true if the path (parameter) is a regular file, otherwise false.
Source: https://habr.com/ru/post/1244973/More articles:Download one lodash method for small collections using the / rollup / webpack browser - lodashLower case for data frame column - rMinimum river crossing time - algorithmShould the Redux state tree represent how the data is organized in the user interface? - javascriptFrog Cross Transition Algorithm - c #save SMTP session from telnet in a log with shell script - bashFind last iteration of foreach loop in caramel blade - phpmacro name alias - schemeIs ConstructorInfo.GetParameters thread safe? - c #Why does int = int * double give an error, but int * = double does not (in Java)? - javaAll Articles