- Add
copy
function which can copy a file or a directory. - Deprecate
rename_file
andrename_directory
in favor ofrename
which does both. - Refactor
copy_directory
to make fewer file system calls. - Add some helpful docs for creating symlinks.
- Add
FileInfo
andfile_info_type
to get the file type from aFileInfo
without checking the file system again - Add
file_info_permissions
andfile_info_permissions_octal
to get the currently set permissions of a file or directory. - Improve performance of
get_files
- Add
link_info
function to getFileInfo
values without following symlinks
- Internal refactoring and some added tests
verify_is_directory
,verify_is_file
,verify_is_symlink
becomeis_directory
,is_file
,is_symlink respectively
. Deprecatedis_file
andis_directory
removed.- Fix mapping of
FileInfo
attr names in JS - Add underlying
String
as context toUnknown
error - improve performance of
get_files
- add
create_symlink
function to create a symbolic link - add
verify_is_symlink
function to check if a file is a symbolic link - add
describe_error
function to get human-readable descriptions out of errors
- fix bug I introduced to
clear_directory_all
which accidentally made absolute directories relative.
- add the
clear_directory
function to make it easy to delete the contents of a directory while leaving the top level directory in place. - add the
filepath
dependency to clean up some code.
- use unicode module to convert filenames to utf8 on erlang
- add
file_info
function.
- Update msg in deprecated tag for
is_directory
to 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_file
to correctly point toverify_is_file
.
- Deprecate
is_file
andis_directory
in favor ofverify_is_file
andverify_is_directory
, which error on lack of permissions rather than silently returning false.
- Add the
current_directory
function
- Update stdlib dep to 0.33
- Fix bug with double "/" from
get_files
- Added
set_permissions
andset_permissions_octal
functions for setting permissions on a file
- No changes, just going v1 so somver starts working
- Renamed
list_contents
toread_directory
- Added
get_files
- Switched order of parameters for
write
,append
,write_bits
, andappend_bits
functions. They now take the filename first.
- Updated ffi js to use
BitArray
- Updated for Gleam v0.32.
- added
delete_all
which takes a list of paths to call delete on
- copy and rename directory functions perform a create_directory_all
- Add
copy_directory
andrename_directory
functions
- Add
copy_file
andrename_file
functions
- Change
creat_dir_all
tocreate_directory_all
- Add functions
create_dir_all
,create_file
, andis_file
. - Remove function
delete_directory
. Thedelete
function now deletes files and recursively deletes directories. make_directory
is now calledcreate_directory
to be consistent withcreate_file
.
- Small refactor to remove js functions
writeFile
andappendFile
- Fix bug where
read
was incorrectly returning non utf8 content for string on javascript target. Now returns correctNonUtf8
error
- Add
make_directory
anddelete_directory
functions for working with directories.
- Update to use new ffi syntax
- Add
is_directory
andlist_contents
functions 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.