[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: File-info:full-pathname - unique identifier

Status
Not open for further replies.
P

Peter Judge

Guest
It's easy enough to calculate a digest (look at the MESSAGE-DIGEST function) but finding the file from that hash will be harder, since digests are one-way (ie you will need to read all the files in the directory until you find the one with a matching digest). You could mitigate this by using a TT to store the digests and their file names, but - you have to do it in each session - the cache of digests will get stale, probably quite quickly: new files, deleted files, renamed files will all affect that cache. You will also need to think about which directory to look in … it looks like there's some structore already "332" and "2020" .

Continue reading...
 
Status
Not open for further replies.
Top