自分のための備忘録としてhttps://docs.julialang.org/en/stable/stdlib/file/から抜粋です。
cd(".") # ディレクトリの移動
pwd() # 現在作業中のディレクトリ名の表示
readdir() # 現在作業中のディレクトリの内容表示(ls)
homedir() # ホームディレクトリ
basename("~/hoge/fuga.txt") # ファイル名を得る(=> "file.txt")
dirname("~/hoge/fuga.txt") # ディレクトリ名を得る(=> "~/hoge")