in reply to stat function used with linux find gives me no data
You don't chomp newlines from your filenames you read back from find so my guess is that since you call stat with "/home/blah/foo\n" (note the trailing newline) it's failing and you don't notice since you don't check the return fron stat. Also you might look at File::Find or File::Find::Rule (or Path::Tiny might be of related interest) rather than shelling out to find.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: stat function used with linux find gives me no data
by daggett (Novice) on Oct 13, 2022 at 10:48 UTC | |
by hippo (Archbishop) on Oct 13, 2022 at 12:44 UTC | |
by NERDVANA (Priest) on Oct 13, 2022 at 23:04 UTC |