Skip to content

Commit

Permalink
fix deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
okkdev committed Feb 18, 2024
1 parent 9074426 commit 20d87e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/simplifile.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pub fn append_bits(
/// let assert True = is_directory("./test")
/// ```
///
@deprecated("Use `is_valid_directory` instead")
@deprecated("Use `verify_is_directory` instead")
pub fn is_directory(filepath: String) -> Bool {
do_is_directory(filepath)
}
Expand Down Expand Up @@ -353,7 +353,10 @@ pub fn rename_file(at src: String, to dest: String) -> Result(Nil, FileError) {
}

/// Copy a directory recursively
pub fn copy_directory(at src: String, to dest: String) -> Result(Nil, FileError) {
pub fn copy_directory(
at src: String,
to dest: String,
) -> Result(Nil, FileError) {
// Erlang does not provide a built in `copy_dir` function,
// and Deno doesn't support Node's `fs.cpSync`, so we'll just roll
// our own for now.
Expand Down

0 comments on commit 20d87e0

Please sign in to comment.