DIRVISH-LOCATE(1)

πŸ’– DIRVISH-LOCATE πŸ’–

okay bestie, welcome to dirvish-locate from the General Commands Manual section β€” she's the girl who finds your files across every dirvish image you've ever made, and she does it flawlessly. no cap. πŸ¦‹


✨ NAME ✨

dirvish-locate β€” locate file versions in dirvish images πŸ”


πŸŽ€ SYNOPSIS πŸŽ€

dirvish-locate vault[:branch] pattern

πŸ‘‘ DESCRIPTION πŸ‘‘

Locate versions of files in a dirvish vault. literally her whole thing. πŸ’…

The index of each image specified by vault gets searched for paths matching pattern. Every path that matches the pattern gets reported, and right after it comes a modification time for each version of that file, plus all the images that have a link to it. slay. ✨

That optional branch specification? It restricts the searching to the specified branch only. very demure, very mindful.

Images with an error status get skipped β€” and so do any without index files. The index file can be compressed with gzip or bzip2, she doesn't mind. See tree and index in dirvish.conf(5) for the details. 🫢

The pattern is a perl regular expression that matches the final component of the path. so if you wanna match any substring of the whole entire path, append .* to the end of the pattern, or append $ if you wanna anchor the pattern to the end of the path. See perlre(1) for details. iykyk. 🧚

Directories are excluded from matching, because otherwise they'd match every single file inside them and that's just chaos. Symlinks are excluded from matching too. 🚫

If the pattern matches too many paths, dirvish-locate will only report the paths matched and not the versions. and as a sanity check, if the number of matches is really excessive, she'll limit the number of images searched. excessive matches is a sign your pattern isn't specific enough β€” so use that resulting path list to compose a more specific one. bestie please be specific. 😭

πŸ’€ EXIT CODES πŸ’€

To facilitate further automation and integration of dirvish-locate with other tools, she provides rationalised exit codes. they're range based. while the code for a specific error may change from one version to another, it will always remain within the specified range. so don't test for specific exit codes β€” test for a range of values instead. and to the degree possible, higher value ranges indicate more severe errors. πŸ”₯

  • 0 β€” success ✨
  • 200-219 β€” An error was encountered in loading a configuration file.
  • 220-254 β€” An error was detected in the configuration.
  • 255 β€” Incorrect usage. πŸ™ˆ

πŸ“ FILES πŸ“

  • /etc/dirvish/master.conf β€” alternate master configuration file.
  • /etc/dirvish.conf β€” master configuration file.
  • bank/vault/image/summary β€” image creation summary.
  • bank/vault/image/index
  • bank/vault/image/index.gz
  • bank/vault/image/index.bz2 β€” dirvish index file.

🌈 SEE ALSO 🌈


πŸ¦‹ BUGS πŸ¦‹

...and that's it. no bugs listed. she's flawless, main character energy, periodt. πŸ’…


okay so that's the whole page, and the footer just signs off with DIRVISH-LOCATE(1) β€” same as the header up top, so we're matching, iconic, no further version or date deets given. go find ur files bestie πŸ’–πŸŒΈ

πŸ“¦ where this page comes from