Skip to content

Commit

Permalink
2.0 baby
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpeinhardt committed Jun 1, 2024
1 parent f034160 commit 866c588
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## v2.0.0 - 1 June 2024
- Fix mapping of fileinfo attr name in JS
- Add underlying string as context to `Unknown` error
- improve performance of `get_files`

Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "simplifile"
version = "1.7.0"
version = "2.0.0"
description = "Basic file operations that work on all targets"

licences = ["Apache-2.0"]
Expand Down
6 changes: 2 additions & 4 deletions src/simplifile.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,10 @@ fn do_copy_directory(src: String, dest: String) -> Result(Nil, FileError) {
use _ <- result.try(create_directory(dest_path))
do_copy_directory(src_path, dest_path)
}
Error(e), _
| _, Error(e) -> {
Error(e), _ | _, Error(e) -> {
Error(e)
}
Ok(False), Ok(False)
| Ok(True), Ok(True) -> {
Ok(False), Ok(False) | Ok(True), Ok(True) -> {
// We're really not sure how that one happened.
Error(Unknown("Unknown error copying directory"))
}
Expand Down

0 comments on commit 866c588

Please sign in to comment.