🧚 A practical web framework for Gleam

Latest simplifile

Changed files
+12 -12
examples
utilities
+2 -2
examples/utilities/tiny_database/gleam.toml
··· 6 7 [dependencies] 8 gleam_stdlib = "~> 0.30" 9 - simplifile = "~> 0.1" 10 ids = "~> 0.8" 11 gleam_json = "~> 0.6" 12 13 [dev-dependencies] 14 - gleeunit = "~> 0.10"
··· 6 7 [dependencies] 8 gleam_stdlib = "~> 0.30" 9 + simplifile = "~> 1.0" 10 ids = "~> 0.8" 11 gleam_json = "~> 0.6" 12 13 [dev-dependencies] 14 + gleeunit = "~> 1.0"
+9 -9
examples/utilities/tiny_database/manifest.toml
··· 2 # You typically do not need to edit this file 3 4 packages = [ 5 - { name = "gleam_erlang", version = "0.23.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "DA7A8E5540948DE10EB01B530869F8FF2FF6CAD8CFDA87626CE6EF63EBBF87CB" }, 6 - { name = "gleam_json", version = "0.6.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "C6CC5BEECA525117E97D0905013AB3F8836537455645DDDD10FE31A511B195EF" }, 7 - { name = "gleam_otp", version = "0.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "gleam_erlang"], otp_app = "gleam_otp", source = "hex", outer_checksum = "ED7381E90636E18F5697FD7956EECCA635A3B65538DC2BE2D91A38E61DCE8903" }, 8 - { name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" }, 9 - { name = "gleeunit", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "1397E5C4AC4108769EE979939AC39BF7870659C5AFB714630DEEEE16B8272AD5" }, 10 - { name = "ids", version = "0.10.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_otp", "gleam_stdlib"], otp_app = "ids", source = "hex", outer_checksum = "36E0E8005716D0030A598B4F5AFB4C269002C119C9DAB100AD3D715B7159705E" }, 11 - { name = "simplifile", version = "0.1.14", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "10EA0207796F20488A3A166C50A189C9385333F3C9FAC187729DE7B9CE4ADDBC" }, 12 { name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" }, 13 ] 14 15 [requirements] 16 gleam_json = { version = "~> 0.6" } 17 gleam_stdlib = { version = "~> 0.30" } 18 - gleeunit = { version = "~> 0.10" } 19 ids = { version = "~> 0.8" } 20 - simplifile = { version = "~> 0.1" }
··· 2 # You typically do not need to edit this file 3 4 packages = [ 5 + { name = "gleam_erlang", version = "0.23.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "C21CFB816C114784E669FFF4BBF433535EEA9960FA2F216209B8691E87156B96" }, 6 + { name = "gleam_json", version = "0.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB405BD93A8828BCD870463DE29375E7B2D252D9D124C109E5B618AAC00B86FC" }, 7 + { name = "gleam_otp", version = "0.8.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "gleam_erlang"], otp_app = "gleam_otp", source = "hex", outer_checksum = "18EF8242A5E54BA92F717C7222F03B3228AEE00D1F286D4C56C3E8C18AA2588E" }, 8 + { name = "gleam_stdlib", version = "0.32.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "ABF00CDCCB66FABBCE351A50060964C4ACE798F95A0D78622C8A7DC838792577" }, 9 + { name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" }, 10 + { name = "ids", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib", "gleam_otp"], otp_app = "ids", source = "hex", outer_checksum = "912A21722E07E68117B92863D05B15BE97E5AEF4ECF47C2F567CECCD5A4F5739" }, 11 + { name = "simplifile", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0BD6F0E7DA1A7E11D18B8AD48453225CAFCA4C8CFB4513D217B372D2866C501C" }, 12 { name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" }, 13 ] 14 15 [requirements] 16 gleam_json = { version = "~> 0.6" } 17 gleam_stdlib = { version = "~> 0.30" } 18 + gleeunit = { version = "~> 1.0" } 19 ids = { version = "~> 0.8" } 20 + simplifile = { version = "~> 1.0" }
+1 -1
examples/utilities/tiny_database/src/tiny_database.gleam
··· 35 36 pub fn list(connection: Connection) -> Result(List(String), Nil) { 37 let assert Ok(_) = simplifile.create_directory_all(connection.root) 38 - simplifile.list_contents(connection.root) 39 |> result.nil_error 40 } 41
··· 35 36 pub fn list(connection: Connection) -> Result(List(String), Nil) { 37 let assert Ok(_) = simplifile.create_directory_all(connection.root) 38 + simplifile.read_directory(connection.root) 39 |> result.nil_error 40 } 41