Read someone else’s folder

Use this guide for a folder that is not yours. It can be a colleague’s folder on a network share, or a server you do not run. It can also be a folder too large to read whole. You learn what Ingence can tell from names, sizes and dates alone, without opening a file. This is the Quick reading depth (Reading depth).

1. Make the project with depth set to metadata

Save the project on your own disk, outside their folder.

ingence init their-project --root /path/to/their/folder --depth metadata

--depth metadata sets the project’s reading depth once. After that, scans in this project don’t open any file. Ingence saves the depth in the project, so you do not have to give it again. The other depths are standard and deep.

2. Look first, if you want to

ingence index -p their-project --dry-run --seconds 60

--dry-run walks the folder the way a scan would, and reports what is there. It reports how fast the walk goes and the kinds of entry. It also reports the sizes, years and file extensions, and what each link says. It doesn’t open any file or write anything into your project or their folder. It says so at the end. --seconds stops it after that many seconds, and --limit after that many entries. Both help on a very large folder.

To save the report as JSON, add --report FILE. Save the file outside the folder you scan. If a file already has that name, Ingence leaves it alone and stops, unless you add --overwrite.

3. Scan it and look

ingence index -p their-project
ingence infer -p their-project
ingence see -p their-project

index lists every file’s name, size and dates, and reads the names. infer applies the rules. The names and dates can show which dated folders look like experiments. They can also show which files look like raw data or analysis, and what repeats. You don’t get anything that needs a file’s contents.

If you run ingence dive -p their-project, Ingence says that this project doesn’t read file contents, and it doesn’t read any. The files stay not read yet, which is different from “nothing found”.

Warning

dive uses the project’s depth unless someone adds --depth. A later ingence dive --depth standard would open files. If others use the project, tell them.

What Ingence reads and writes

  • Ingence never changes your files. It doesn’t change anything in their folder either. It writes only into your project, and into the report if you asked for one.

  • It doesn’t open any file. It asks the operating system for each file’s name, size and dates, and for where each link points. A server may log that (Privacy and your data).

  • If the folder is kept in step with the cloud, opening a file may make the sync program download it. Depth metadata avoids that.

  • On a slow share, read Network shares and slow storage before the scan.