|
Jan,
I ended up doing exactly what you describe (opendir / readdir), but I can
imagine that that is not feasible for directories of more than 50.000
files. I always found it strange that I can't find a stat-like api with
st_ino as input instead of filename.
Joep Beckeringh
Pantheon Automatisering
Jan Grove Vejlstrup <jgv@xxxxxxxx>
18-12-2015 16:44
Exact Name of File in Root-Part of IFS
Hello
The root part of the IFS isn't case-sensitive. This means, that I can't
have abc123.jpg and ABC123.jpg stored in the same directory. If I have
abc123.jpg in the IFS and I use the API access with the path-parameter
/directory/ABC123.jpg to check the existence of the file, the answer is
positive. But ABC123.jpg isn't stored, abc123.jpg is. Do you know of a
way to get the exact name of the file (in casu abc123.jpg) stored in the
IFS?--
I know, I could use the APIs opendir and readdir to read through the
whole directory to get the exact names. But my directory has more than
50'000 files stored in it. So this wouldn't perform well, if I was
interested only in one file.
Thank you very much in advance.
Best regards
Jan
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.