--
- Add
existsfunction for checking if a file, directory, or symlink exists at all at a given path.
- Add
touchfunction, which creates a file if it doesn't exist and updates its access and modification times to now if it does.
- Add
resolvefunction, which resolves relative paths to absolute paths based on the current working directory.
- Use
rawoption for write and append operations on Erlang - Add
delete_filefunction for specifically deleting a file (usesrawon Erlang as well)
- Fix bug where unknown errors were not properly converted to the Unknown variant in Erlang ffi.
- Fix bug with error string typo for
Enotdiron JS.
- Add
create_linkfunction for hard-linking - Fix bug where one could silently write non-byte aligned data to file, now throws explicit error.
- Remove use of deprecated field in JavaScript ffi
- Add
copyfunction which can copy a file or a directory. - Deprecate
rename_fileandrename_directoryin favor ofrenamewhich does both. - Refactor
copy_directoryto make fewer file system calls. - Add some helpful docs for creating symlinks.
- Add
FileInfoandfile_info_typeto get the file type from aFileInfowithout checking the file system again - Add
file_info_permissionsandfile_info_permissions_octalto get the currently set permissions of a file or directory. - Improve performance of
get_files - Add
link_infofunction to getFileInfovalues without following symlinks
- Internal refactoring and some added tests
verify_is_directory,verify_is_file,verify_is_symlinkbecomeis_directory,is_file,is_symlink respectively. Deprecatedis_fileandis_directoryremoved.- Fix mapping of
FileInfoattr names in JS - Add underlying
Stringas context toUnknownerror - improve performance of
get_files
- add
create_symlinkfunction to create a symbolic link - add
verify_is_symlinkfunction to check if a file is a symbolic link - add
describe_errorfunction to get human-readable descriptions out of errors
- fix bug I introduced to
clear_directory_allwhich accidentally made absolute directories relative.
- add the
clear_directoryfunction to make it easy to delete the contents of a directory while leaving the top level directory in place. - add the
filepathdependency to clean up some code.
- use unicode module to convert filenames to utf8 on erlang
- add
file_infofunction.
- Update msg in deprecated tag for
is_directoryto correctly point toverify_is_directory
- Update gleam_stdlib dependency to "~> 0.34 or ~> 1.0" in preparation for 1.0.
- Update msg in deprecated tag for
is_fileto correctly point toverify_is_file.
- Deprecate
is_fileandis_directoryin favor ofverify_is_fileandverify_is_directory, which error on lack of permissions rather than silently returning false.
- Add the
current_directoryfunction
- Update stdlib dep to 0.33
- Fix bug with double "/" from
get_files
- Added
set_permissionsandset_permissions_octalfunctions for setting permissions on a file
- No changes, just going v1 so somver starts working
- Renamed
list_contentstoread_directory - Added
get_files
- Switched order of parameters for
write,append,write_bits, andappend_bitsfunctions. They now take the filename first.
- Updated ffi js to use
BitArray
- Updated for Gleam v0.32.
- added
delete_allwhich takes a list of paths to call delete on
- copy and rename directory functions perform a create_directory_all
- Add
copy_directoryandrename_directoryfunctions
- Add
copy_fileandrename_filefunctions
- Change
creat_dir_alltocreate_directory_all
- Add functions
create_dir_all,create_file, andis_file. - Remove function
delete_directory. Thedeletefunction now deletes files and recursively deletes directories. make_directoryis now calledcreate_directoryto be consistent withcreate_file.
- Small refactor to remove js functions
writeFileandappendFile
- Fix bug where
readwas incorrectly returning non utf8 content for string on javascript target. Now returns correctNonUtf8error
- Add
make_directoryanddelete_directoryfunctions for working with directories.
- Update to use new ffi syntax
- Add
is_directoryandlist_contentsfunctions for working with directories.
- Add ffi to remove gleam_erlang dependency
- Remove unnecessary dependency on
gleam_javascript. Whoops.
- Refactored to match gleam idiom of ffi "do" functions and single signature.
- Added documentation about the utf8 issue with the read function.