Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I might consider taking a look at the bit torrent files as a start. I think it uses a JSON like style</p> <p>If you have a torrent program you can generate a .torrent file for a folder and the contents and check it out</p> <p>I think this uses a concatenated SHA1 hash of parts of a file but you could just concatenate multiple hashes in it's place, and have then length encoded. </p> <p>Wikipedia has the following example: <a href="http://en.wikipedia.org/wiki/Torrent_file" rel="nofollow">http://en.wikipedia.org/wiki/Torrent_file</a></p> <pre><code>{ 'announce': 'http://tracker.site1.com/announce', 'info': { 'name': 'directoryName', 'piece length': 262144, 'files': [ {'path': ['111.txt'], 'length': 111}, {'path': ['222.txt'], 'length': 222} ], 'pieces': '6a8af7eda90ba9f851831073c48ea6b7b7e9feeb...8a43d9d965a47f75488d3fb47d2c586337a20b9f' } } </code></pre> <p>I would probably modify it to be something like: </p> <pre><code>{ 'datelastupdated': '[date hash program ran]', 'info': { 'name': 'thedirectoryName', 'Totalfiles': 2, 'Totaldirs': 2, 'files': [ {'name': '111.txt', 'size': 111, 'md5':"df038ad...", 'sha1':'3323...}, {'name': '222.txt', 'size': 222 ........ etc.} ], 'dirs': [ {'name': 'directoryname'}, {'name': 'othername'} ] } } </code></pre> <p>You can then use a package to do json_encoding or decoding (php from cli will work for this) or whatever you want to create/update them..</p> <p>this structure would allow you to access it conveniently after doing a json_decode something like: </p> <pre><code>$decodedjson-&gt;info-&gt;files[x]-&gt;name </code></pre> <p>I always get a bit confused w/ that syntax, so it might be something like <code>$decodedjson-&gt;info['files'][x]-&gt;name</code> , but hopefully you get the idea, it would be easy to loop across the structure, update it compare, and save it.. Cheers!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload