#FileInfo?

1 messages · Page 1 of 1 (latest)

broken arrow
#

Hi

I'm looking for a way to get mtime, ctime and other file details

After some initial confusion I realized that a library is needed for file handling 😅 Alright 😊 I've then learned that file operations was in the gleam/erlang/file library, which then deprecated (https://github.com/gleam-lang/erlang/commit/9d72bd00caf5ec80ffbafb2a75c6d29b1d1477c5) and now simplifile is the recommended library.

In gleam/erlang/file it looks like you use this https://hexdocs.pm/gleam_erlang/0.21.0/gleam/erlang/file.html#file_info to get this https://hexdocs.pm/gleam_erlang/0.21.0/gleam/erlang/file.html#FileInfo

I could have missed it, but I failed to find any equivalent in simplifile 🔍🤷‍♀️ Any pointer to how to get file information?

P.S. I am very new to Gleam and anything BEAM related 😬

fallow tiger
#

ooh this would be great to have in simplifile!

#

@tranquil delta !

tranquil delta
#

@broken arrow I’ll add this when I get a chance and let you know here, probably today or tomorrow 😌

fallow tiger
#

Hero!

tranquil delta
#

Let me know if this has the info you need!!

#

Shoutout to Gleam for having the smoothest FFI experience in all modern programming, legitimately a joy which is not the norm when doing FFI haha

fallow tiger
#

That was fast!

#

Thank you