Open Bug 421029 Opened 12 years ago Updated 10 years ago
Implement file search in NSPR
Currently, NSPR has no capabilities for file searching on the operating system. This would be very useful to have - sdwilsh says Download Manager could use it, and it would save me time in Verbosio to have file-search as a native XPCOM component.
I think this feature should be provided in XPCOM. Are there system calls on Windows and Mac OS X for file searching?
Windows: http://msdn.microsoft.com/en-us/library/aa364419(VS.85).aspx OSX (Carbon) : http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html I'm having trouble finding the Cocoa references.
http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html - this might be a starting point: "Ideally, you should use the Cocoa functions and constants defined in NSPathUtilities.h. They are easier to use and more efficient in Cocoa code. The primary function for obtaining paths to standard directories is NSSearchPathForDirectoriesInDomains."
Here's a GNU tool for file searching: http://www.gnu.org/software/findutils/ That covers Linux, in one way.
You need to log in before you can comment on or make changes to this bug.