There is a bug or issue.
When I use such 2 paths in pathlists array:
pathlists[1]="/path/to/files"
pathlists[2]="/path/to/my/files"
it overwrites stat() of files and directories in first path with files
and directories in second one.
The output is:
data["files"]["file_in_files.txt"]["."]["stat"]["blksize"]="4096"
data["files"]["file_in_my_files.png"]["."]["stat"]["blksize"]="4096"
When i write such functions I use paths with last directories with the
same name. Can it be changed to data[1], data[2] or if there is:
pathlist["files"]="/path/to/files"
pathlists["my_files"]="/path/to/my/files"
and then the output array will be:
data["files"]["file_in_files.txt"]["."]["stat"]["blksize"]="4096"
data["my_files"]["file_in_my_files.png"]["."]["stat"]["blksize"]="4096"
It seems to me that it would be much more convenient.
--
Thanks for your report. But isn't "fts" part of the filefuncs library
that's packaged with gawk? Issues with gawk extensions should be reported
to help-gawk@gnu.org or by using the gawkbug script. Please see: https://www.gnu.org/software/gawk/
In any case, it would be preferable if you can include a short sample
program demonstrating the problem you are encountering.
Best,
Andy
On Sat, Jun 17, 2023 at 04:34:35PM -0000, Evgeny Dobromilsky wrote:
There is a bug or issue.
When I use such 2 paths in pathlists array:
pathlists[1]="/path/to/files"
pathlists[2]="/path/to/my/files"
it overwrites stat() of files and directories in first path with files
and directories in second one.
The output is:
data["files"]["file_in_files.txt"]["."]["stat"]["blksize"]="4096"
data["files"]["file_in_my_files.png"]["."]["stat"]["blksize"]="4096"
When i write such functions I use paths with last directories with the
same name. Can it be changed to data[1], data[2] or if there is:
pathlist["files"]="/path/to/files"
pathlists["my_files"]="/path/to/my/files"
and then the output array will be:
data["files"]["file_in_files.txt"]["."]["stat"]["blksize"]="4096"
data["my_files"]["file_in_my_files.png"]["."]["stat"]["blksize"]="4096"
It seems to me that it would be much more convenient.
--
There is a bug or issue.
When I use such 2 paths in pathlists array:
pathlists[1]="/path/to/files"
pathlists[2]="/path/to/my/files"
it overwrites stat() of files and directories in first path with files
and directories in second one.
The output is:
data["files"]["file_in_files.txt"]["."]["stat"]["blksize"]="4096"
data["files"]["file_in_my_files.png"]["."]["stat"]["blksize"]="4096"
When i write such functions I use paths with last directories with the
same name. Can it be changed to data[1], data[2] or if there is:
pathlist["files"]="/path/to/files"
pathlists["my_files"]="/path/to/my/files"
and then the output array will be:
data["files"]["file_in_files.txt"]["."]["stat"]["blksize"]="4096"
data["my_files"]["file_in_my_files.png"]["."]["stat"]["blksize"]="4096"
It seems to me that it would be much more convenient.
--
With best regards, Evgeny bez-opas@yandex.ru
Hi,
Thanks for your report. But isn't "fts" part of the filefuncs library
that's packaged with gawk? Issues with gawk extensions should be reported
to help-gawk@gnu.org or by using the gawkbug script. Please see:
https://www.gnu.org/software/gawk/
In any case, it would be preferable if you can include a short sample
program demonstrating the problem you are encountering.
Best,
Andy
On Sat, Jun 17, 2023 at 04:34:35PM -0000, Evgeny Dobromilsky wrote: