Ferret File System/v0.1/process

From Woozle Writes Code
< Ferret File System‎ | v0.1
Revision as of 17:57, 27 February 2016 by Woozle (talk | contribs) (scanning a volume, take 1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Scanning a Volume

When given a volume to scan, here's what happens:

  • FF reads the directory at the volume's URL
  • For each item found, does "Each Entry" below.

Each Entry

  • Looks for a matching entry in dirent.
  • If entry does not exist, creates it.
  • Logs that the entry was found, and whether it was new or existing.
  • If it was an existing entry, logs any changes in the specs.
  • If Entry is a File, does "Each File" below.
  • If Entry is a Folder, does "Each Folder" below.

Each File

  • Checks the firev to see if it matches.
    • If not, creates a new firev and updates the file's ID_Firev.
    • Logs whether the firev has changed or not.

Each Folder

  • Checks to see if folder is scannable.
    • If it isn't, log that it was not scanned.
    • If it is, do "Each Entry" above for each entry in the folder's directory.