Tristan Sloughter
7015ba2951
remove use of deprecated function erlang:now/0
2015-04-23 17:56:56 -05:00
Jamie Winsor
7a32f52e7d
add ec_file:is_dir/1
...
use ec_file:is_dir/1 to identify symlinks which are directories
Ensure contents of symlinked directories are copied when using ec_file:copy/3
2014-07-09 14:51:50 -07:00
Tristan Sloughter
3121c892b4
support r14/15 crypto
2014-05-24 09:42:57 -05:00
Low Kian Seong
73f21ee770
Adding sha1sum method
2014-05-16 10:38:13 +08:00
Low Kian Seong
cc7f6dd0df
changes to add another clause to the directory/file check
2014-05-14 22:42:59 +08:00
Low Kian Seong
bd6fd557d5
Found a typo while reading docs. Correcting
2014-05-08 11:10:38 +08:00
Eric Merritt
efdd2a1092
fix dialyzer issues
2013-10-14 16:20:33 -07:00
Eric Merritt
16b441f0e3
fix up tests to reflect the actual NOTEST variable DEV_ONLY
2013-10-14 14:10:25 -07:00
Jesse Gumm
8bc27f62fd
Add vi modelines to files. Ignore vim backup files
2013-08-30 06:56:06 -05:00
Eric B Merritt
652fcc1e23
remove ec_file:consult/1 as it provides very little value Fixes #1
2013-04-24 09:54:34 -07:00
Eric B Merritt
17e08c04a2
make ec_file a bit more friendly to binary file names
2013-04-09 10:51:11 -07:00
Eric Merritt
e1e30f4a75
add file type discovery and resolution to ec_file
2013-03-14 11:50:49 -07:00
Eric Merritt
f77afd43c3
add exists to ec_file
...
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-19 11:15:09 -06:00
Eric Merritt
a9f2a771f0
fix bug in ec_file:copy/3 spec
...
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -06:00
Eric Merritt
eab58fb660
export mkdir_p (this should have been done already)
...
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -06:00
Eric Merritt
9b9f070a5f
move ec_file away from exceptions to return values
...
In an attempt to unify on the accepted use of return values ec_file is
changing its API to use return values instead of exceptions.
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:26 -05:00
Eric Merritt
e035ae3dbf
fixes to dialyzer
...
All types should now be correct and dialyzer runs successfully
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:21 -05:00
Eric Merritt
b4eb83cf53
make insecure nature of ec_file:mkdtemp obvious fixes erlware/erlware_commons#16
2012-06-05 17:59:52 -05:00
Eric Merritt
261fb422f9
fix eunit tests so that they actually work and run
2012-06-05 17:59:51 -05:00
Eric Merritt
10557e421e
make mkdtemp a lot more secure (still not fully secure but more).
2012-06-05 17:59:50 -05:00
Eric Merritt
8353035a1e
whitespace and comment refactoring
...
This patch replaces tabs with spaces and converts the '%' inline
comments (which according to the emacs mode are actually end of line
comments) to the mode acceptable '%%' inline comments.
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-02-20 15:15:23 -05:00
Eric Merritt
694e805012
Minor reformatting/whitespace removal
...
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-09-26 23:50:13 -04:00
Eric Merritt
eecbb26a2d
remove old style catches from the library
...
This removes the old style catches and replaces them with
try/catch. It seems to make the code much clearer and its certainly
less failure prone.
2011-04-22 14:55:16 -04:00
Eric Merritt
8dda138814
A little minor formatting cleanup
2011-04-22 14:55:10 -04:00
Eric Merritt
07a54bb518
add specs and exported types where needed
...
This patch exports types that are needed and adds specs where they did
not previously exist. It also cleans up and expands the specs where
they needed to be cleaned up.
2011-04-22 14:55:04 -04:00
Martin J. Logan
431b13e942
added ec_file helper functions for working with files.
...
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-04-03 23:04:17 -04:00