JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/dir



    cfunction
    src/core/os.c on line 1921, column 1

    (os/dir dir &opt array)

    Iterate over files and subdirectories in a directory. Returns an 
    array of paths parts, with only the file name or directory name and 
    no prefix.


1 exampleSign in to add an example
Loading...
(os/dir "./")                   # => @[]
(os/shell "touch foo bar baz")  # => nil
(os/dir "./")                   # => @["foo" "bar" "baz"]
cellularmitosisPlayground