bcpeinhardt / simplifile

Simple file operations for Gleam that work on all targets (Erlang/Node/Deno)
71 stars 10 forks source link

`move` function #12

Closed aslilac closed 11 months ago

aslilac commented 11 months ago

something like fn(String, to: String) -> Result(Nil, _)

it'd be great if it could make sure the directory containing to exists as well

bcpeinhardt commented 11 months ago

Pssst this is published as rename_file :) I would use is_directory or create_directory_all depending on your needs for the directory checking bit.