mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-09 15:48:43 +00:00
1.8 KiB
1.8 KiB
Marlin on Windows
This short guide covers a few tasks when running Marlin on Windows:
- Running
marlin init
. - Moving and renaming files.
- Verifying that tags and attributes stay linked.
- Checking watcher performance under heavy activity.
1 Run marlin init
- Open PowerShell or Command Prompt.
- Navigate to the directory you want indexed, e.g.
cd C:\Users\You\Documents\Project
- Run
marlin init
from that folder. The command creates the database and performs the first scan.
2 Move and rename files
Windows Explorer renames and moves are tracked automatically when the watcher is running.
- Start the watcher in a terminal:
marlin watch start C:\Users\You\Documents\Project
- Move or rename files/directories through Explorer or the
move
command. - The watcher logs the operations and updates the database.
3 Verify tags and attributes
After moving or renaming files, confirm that metadata stayed linked:
marlin search "tag:mytag" # paths should reflect new locations
marlin attr get path/to/file.txt # attributes move with the file
If anything is missing, run a manual dirty scan:
marlin scan --dirty C:\Users\You\Documents\Project
4 Check watcher performance
To stress-test the watcher under many events:
- Open another terminal window and create a burst of file operations:
1..1000 | % { New-Item -Path test$_ -ItemType File } 1..1000 | % { Remove-Item test$_ }
- Watch the original terminal for log messages and ensure the watcher keeps up without large delays.
- For a longer test, let the watcher run overnight while copying or deleting large trees.
End of guide