25  Filesystem

25.1 Change directory: cd()

cd("/Users/egenn/icloud/Code/Julia/sandbox/")

25.3 List directory contents: readdir()

readdir("./super")
3-element Vector{String}:
 "IRSdata.csv"
 "incredibleAlgo.jl"
 "topSecretIntelligence.md"

readdir() returns the full path to files with join=true

readdir("./super", join=true)
3-element Vector{String}:
 "./super/IRSdata.csv"
 "./super/incredibleAlgo.jl"
 "./super/topSecretIntelligence.md"

if you want to get the absolute path of files, provide the absolute path to the directory:

readdir("/Users/egenn/icloud/Code/Julia/sandbox/super/", join=true)
3-element Vector{String}:
 "/Users/egenn/icloud/Code/Julia/sandbox/super/IRSdata.csv"
 "/Users/egenn/icloud/Code/Julia/sandbox/super/incredibleAlgo.jl"
 "/Users/egenn/icloud/Code/Julia/sandbox/super/topSecretIntelligence.md"

25.4 Resources