-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy and move #38
Copy and move #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -413,6 +413,9 @@ pub fn is_directory(filepath: String) -> Result(Bool, FileError) | |||
pub fn create_directory(filepath: String) -> Result(Nil, FileError) | |||
|
|||
/// Create a symbolic link called symlink pointing to target. | |||
/// Footgun Alert: the target path is relative to *the symlink*, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe new paragraph? So an empty line here. Could even give it a heading
@@ -492,6 +495,24 @@ pub fn create_directory_all(dirpath: String) -> Result(Nil, FileError) { | |||
@external(javascript, "./simplifile_js.mjs", "createDirAll") | |||
fn do_create_dir_all(dirpath: String) -> Result(Nil, FileError) | |||
|
|||
/// Copy a file or a directory to a new path. Copies directories recursively. | |||
/// Performance note: This function does work to determine if the src path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@lpil