I need file timestamp and size, so I need a full FileInfo.
--
rob
drrob...@fastmail.com
On Sat, Mar 13, 2021, at 6:11 PM, Axel Wagner wrote:
>
>
> On Sat, Mar 13, 2021 at 11:52 PM rob wrote:
>> Sorry, I did not intend to open a new thread.
>> I don't know how to answer you about the ac
On Sat, Mar 13, 2021 at 11:52 PM rob wrote:
> Sorry, I did not intend to open a new thread.
>
> I don't know how to answer you about the actual contents of the directory
> of interest. It's my c:\users\rob\Documents directory.
>
> There are a lot of files there. I'm writing my own version of th
Sorry, I did not intend to open a new thread.
I don't know how to answer you about the actual contents of the
directory of interest. It's my c:\users\rob\Documents directory.
There are a lot of files there. I'm writing my own version of the dir
command, one that will sort and behave exactly
I don't understand why you opened a new thread. But FWIW, it would still be
useful to know
a) what the actual contents of the directory are you are globbing
b) which of those file names is then giving you an error
c) and which specific call is returning that error.
Your message "Unexpected error f
As the subject line says, this is on windows.
I'm getting the file not found error for every file returned by the glob
function.
I guess I misunderstood the purpose of ReadDir, and I really need to call
os.Lstat to retrieve the directory information for each individual file that
matches the
Hi,
I'm not entirely sure what is happening (it's hard to see without getting
more information about the actual file tree and what files you get errors
for) and what OS you are running on. But one observation is that you glob
for *.txt and then call `ReadDir` on the result - that doesn't make much
I've been writing some code to learn about the library changes in Go 1.16.
The following code uses filepath.Glob to get a slice of matching
filenames, then uses os.ReadDir to get more information about these
files. I found that os.ReadDir reports a file not found error for the
filenames retur