JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/rename



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

    (os/rename oldname newname)

    Rename a file on disk to a new path. Returns nil.


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