Hi
Rob,
If you
have access to a terminal you can do a unix cmd 'find':
find
./ -name APPLESCRIPT -print
This
will search from the current dir for a file/folder called 'APPLESCRIPT' and
return the dir location.
To speed things up store this location the first time you run your
script and check if it's in the same place the next time. If the folder has
moved then do another find.
Regards, Gary.
Hi all,
I have a mounted share which has a somewhat chaotic and vast folder
structure (not my doing, honest!). I want to search for a particular folder
name on that share (it could be anywhere). I can think of a couple of ways of
doing this, namely;
1) A recursive scan through the hierarchy every time I want to look for a
folder (time consuming)
2) Creating a database of all files on the share overnight and searching
that (faster, but obviously always slightly out of date)
I'm sure (and I hope) there must be a better way - can anyone suggest
anything?
Thanks
Rob
---
Rob
Stott
Production Workflow
Developer
Watt Gilchrist Ltd, Albion Mills, Albion Road
Greengates, Bradford, BD10 9TQ, United Kingdom
Internal extension: 467
This e-mail is from the PA Group. For more information, see www.thepagroup.com.
This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this email or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of the PA Group.
Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.
|