Hisham Muhammad
6adf412a25
return higher precision times in lfs.attributes
2021-01-23 15:49:05 -03:00
Hisham Muhammad
68c624c686
It does work on Windows now!
2020-04-22 22:12:23 -03:00
Hisham Muhammad
6048863a96
tests: behavior test for hard links
...
Also check nlink on Unix only
and test if something is a symlink
2020-04-21 13:45:50 -03:00
Peter Melnichenko
d399961536
Merge branch '1.7'
2017-09-14 12:15:58 +03:00
Peter Melnichenko
50919ed69f
Fix lfs.attributes and lfs.symlinkattributes extra argument handling
...
When the second argument is not a string, _file_info() wants to
ensure that there is a table on top of the stack: the second argument
or a new table. If a new table is pushed it's created on top immediately,
but if a table is passed as the second argument it can be followed
by extra arguments, with the last one ending up being used as a table,
causing a crash. The fix is to remove any potential extra arguments
using `lua_settop(L, 2)`.
Also added a few tests for this case. Ref #80 .
2016-08-25 18:31:09 +03:00
NiteHawk
32b355a990
Add a 'target' field for symlinkattributes.
...
It returns the resolved path of the symlink.
Original version by Hisham <hisham@gobolinux.org >, modified to
use a different strategy for sizing the readlink() buffer.
2016-07-16 15:35:27 +02:00
Peter Melnichenko
a332bde584
Merge branch 'master' into 1.7
2016-06-21 10:48:11 +03:00
Peter Melnichenko
7fae11cdb5
Add a test for #52 .
2016-06-09 13:28:56 +03:00
Peter Melnichenko
8d5f9661e9
Test what lfs.attributes returns on error
2016-05-05 12:39:17 +03:00
Stefan Hoffmann
4437e19455
Fix lfs.attributes(file, 'blksize')
...
fs.attributes(file, 'blksize') and fs.attributes(file, 'blocks) return
the wrong values.
Compare the whole attribute name instead of the first char and remove
buggy special casing with wrong indexes into the member array.
2014-08-09 12:33:33 +02:00
Fabio Mascarenhas
d71c63cdb7
luafilesystem 1.6.0
2012-10-01 11:11:48 -03:00
Fabio Mascarenhas
84f1af5eef
applied debian patches from enrico tassi
2012-04-08 20:25:40 -03:00
Reuben Thomas
3cea6c6e96
Add lfs.link.
2011-06-09 19:53:41 +01:00
Reuben Thomas
7e979318bd
Use package.config to get directory separator.
2011-06-09 19:53:41 +01:00
Reuben Thomas
361cede4d0
Add trivial implementation of setmode on non-Windows platforms.
2011-06-09 19:53:41 +01:00
Reuben Thomas
3140ca4db8
Make test.lua find its interpreter using /usr/bin/env.
2011-06-09 19:53:41 +01:00
Reuben Thomas
530c9140c7
Add trivial link_info support on Windows (using STAT_FUNC).
2011-06-09 19:53:41 +01:00
mascarenhas
375d009d89
added explicit next and close methods to second return value of lfs.dir (the directory object), for explicit iteration or explicit closing
2009-06-03 20:49:18 +00:00
mascarenhas
ca8efaa8e7
large file support in lfs.attributes (bug #2185 )
2008-03-25 16:58:29 +00:00
carregal
0154141e3f
Fixed bug in the Windows tests (patch by Shmuel Zeigerman)
2008-03-10 15:28:50 +00:00
carregal
db7e8b9133
Adding tests for lfs.setmode
2008-02-13 20:59:51 +00:00
carregal
6368cd544f
Fixing a wrong test (tks to Enrico Tassi)
2007-10-27 14:15:49 +00:00
carregal
4790b562ca
Checking for lfs.symlinkattributes so the tests are not applied in Windows
2007-10-26 21:06:14 +00:00
carregal
d202dad4f1
Removing the symbolic link tests since they don't work in Windows. We have to re-check them later.
2007-10-26 20:13:10 +00:00
tomas
57a64a5cfe
Adding function symlinkatributes. Updating version to 1.3.0
2007-06-07 01:28:08 +00:00
carregal
d3e7a0ed12
Corrected the second of 2 bugs on the test script found by Shmuel Zeigerman involving the access and update time on lfs.touch()
2007-05-18 18:04:46 +00:00
carregal
4e23cb01d9
Corrected 1 of 2 bugs on the test script found by Shmuel Zeigerman: the use of /tmp as a necessary directory.
...
Corrected a bug on the test script on slow fliesystems due to the reliance on close times
2007-05-17 23:08:20 +00:00
tomas
c182bab5f9
Adding version information
2006-06-08 18:04:29 +00:00
tomas
121ae680f1
Standardizing execution errors to nil followed by an error message
2006-03-14 13:39:38 +00:00
tuler
55de5925e5
access time 11, 22 and 33 do not work on windows
2005-08-18 12:43:05 +00:00
uid20006
87b373b3d8
touch does not work with directories in windows.
2005-08-16 18:24:28 +00:00
uid20006
e7ced7f8af
using lfs.rmdir instead of os.remove.
2005-08-16 13:48:23 +00:00
uid20013
e224c98838
Closing directory after a complete traversal.
...
Adding tests for that.
2005-08-16 00:11:15 +00:00
tuler
97abe2139e
new function lfs.rmdir
2005-06-03 21:50:59 +00:00
tomas
86e97088a0
Acrescimo da funcao lfs.touch (lfs.c e test.lua).
...
Pequenas correcoes para evitar warnings de redefinicao de macros.
2005-01-18 10:48:02 +00:00
tomas
c9286d40fe
Correcoes em valores de retorno de funcoes.
2004-11-05 10:54:28 +00:00
tomas
4d5d1e75fa
Pequenas correcoes nos valores de retorno de algumas funcoes.
...
Acrescimo do arquivo de testes.
2004-11-01 15:27:13 +00:00