Searching Unix Filesystems

(imported topic written by JasonO91)

I’m trying to get away from a find script to generate the list so that I don’t have to write the find script for each type of OS. I’ve replaced the relevance from a script that works on a Windows machine with the proper unix paths, however the action fails if it tries to retrieve something other than basic file information.

Failed: appendfile {concatenation “%0d%0a” of ("File: " & pathname of it as string & " Modification Time: " & modification time of it as string & " Size: " & size of it as string) of descendants whose ((modification time of it) > now - 60 * day and size of it > 50000) of folders “/appl”}

/appl does exist and has files that should be returned.

Thanks,

Jason

(imported comment written by Doug_Coburn)

Jason,

I think the problem is the hex characters. Try this clause instead.

Q: ("File: " & pathname of it as string & " Modification Time: " & modification time of it as string & " Size: " & size of it as string) of descendants whose ((modification time of it) > now - 60 * day and size of it > 1) of folder “/appl”

A: File: /appl/test.txt Modification Time: Wed, 27 Dec 2006 09:59:03 -0800 Size: 6

A: File: /appl/test1.txt Modification Time: Wed, 27 Dec 2006 10:05:25 -0800 Size: 9

Doug