How do I find the size of a file?

help?> filesize
search: filesize

  filesize(path...)

  Equivalent to stat(file).size.

If you use stat you can see, if the path is correct:

julia> stat("path/to/my/file/myfile")
StatStruct(mode=0o000000, size=0)

as expected for this example. But for something existing:

julia> stat("c:\\Temp\\Test2.jl")
StatStruct(mode=0o100666, size=296)
2 Likes