Skip to content

Commit

Permalink
New -l flag to list all mounted volumes that support catalog search, …
Browse files Browse the repository at this point in the history
…volume can now be specified via device name (e.g. "/dev/disk1s1"), support for regex modifiers ^ and $.
  • Loading branch information
sveinbjornt committed May 11, 2019
1 parent ff70c8c commit e21796f
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 118 deletions.
6 changes: 4 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

TODO:
* Create brew formula
* Search by date created, modified, file type, creator type

0.3
TODO: Search by date created, modified, file type, creator type
TODO: List all searchfs()-supported volumes
* New -l flag makes searchfs list all mounted volumes that support catalog search
* Volume to search can now be specified via device name (e.g. "/dev/disk1s1") as well as mount path
* Regex modifiers ^ and $ can now be used to match only at the start or end of a filenames, respectively.

0.2 - 26/04/2019

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all:: main

main: main.m
$(CC) $(FRAMEWORKS) -o $(BIN_NAME) $(CFLAGS) main.m
strip -x $(BIN_NAME)
/usr/bin/strip -x $(BIN_NAME)

install:
cp $(BIN_NAME) $(DEST_DIR)
Expand All @@ -21,4 +21,4 @@ uninstall:
rm $(MAN_DIR)$(MAN_NAME)

clean:
rm -rf *.o searchfs 2> /dev/null
@rm -rf *.o searchfs 2> /dev/null
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<img src="searchfs.png" width="164" height="164" alt="searchfs icon" style="float: right; margin-left: 20px; margin-bottom: 20px;" align="right">

`searchfs` is a Mac command line tool to quickly search by filename on entire HFS+ and APFS volumes. Searching takes place at the driver level using the file system catalog. This means the volume's directory tree can be scanned much faster than with a standard recursive filename search using `find`.
`searchfs` is a Mac command line tool to quickly search by filename on entire HFS+ and APFS volumes. Searching takes place at the driver level using the file system catalog. This means the volume's directory tree can be scanned much faster than with a standard recursive filename search using `find`.

Search is case-insensitive by default. Matching files are printed to standard output in the order they are found in the catalog. See the [man page](https://sveinbjorn.org/files/manpages/searchfs.1.html) for details.

[KatSearch](https://github.com/sveinbjornt/KatSearch) is a graphical application built on top of `searchfs`.

## Download

* [⇩ Download latest searchfs binary](https://sveinbjorn.org/files/software/searchfs.zip) (<20 KB, Intel 64-bit, macOS 10.7 or later)
* [⇩ Download latest searchfs binary](https://sveinbjorn.org/files/software/searchfs.zip) (v0.3, <20 KB, Intel 64-bit, macOS 10.7 or later)
* [searchfs man page](https://sveinbjorn.org/files/manpages/searchfs.1.html) (HTML)

## Build & Install
Expand Down Expand Up @@ -51,17 +51,23 @@ However, catalog search for both HFS+ and APFS remains available in Darwin's low

## TODO

* The API supports searching the catalog for files based on creation, modification, access date, finder flags, deprecated old-school file and creator types,, and so on. Add that.
* The searchfs API supports searching the catalog for files based on creation, modification or access date, finder flags, deprecated old-school file and creator types, and so on. Add that.

## Version History

### 26/04/2019 - **0.2.0**
### 11/05/2019 - **0.3**

* Fixed issue which prevented searchfs from working on older versions of macOS
* Now fails silently when path lookup fails for a file system object ID
* Now runs on macOS 10.7 or later
* New -l flag lists all mounted volumes that support catalog search.
* Volume to search can now be specified via device name as well as mount path.
* Regex modifiers ^ and $ can now be used to match only at the start or end of a filenames.

### 14/07/2018 - **0.1.0**
### 26/04/2019 - **0.2**

* Fixed issue which prevented searchfs from working on older versions of macOS.
* Now fails silently when path lookup fails for a file system object ID.
* Now runs on macOS 10.7 or later.

### 14/07/2018 - **0.1**

* Initial release

Expand Down
Loading

0 comments on commit e21796f

Please sign in to comment.