56b5aff67c7ef84f749f9d1afa86c03c
dropbox

Contents of 1.2 Size Date

Index file generated on 2015-08-12 17:39 with pyndexer v.1.2.4
upParent directory
file_README-FIRST.html 9 KB 2011-10-19 19:31
filejsencryption.js 23 KB 2010-06-21 15:50
filejwplay.js 1 KB 2011-05-16 23:57
filemsvcp71.dll 488 KB 2003-03-18 23:14
filemsvcr71.dll 340 KB 2003-02-21 05:42
fileplayer.swf 80 KB 2009-12-04 12:44
filepyndexer.empty.ini 5 KB 2013-01-06 15:00
filepyndexer.exe 3.39 MB 2014-04-08 08:31
filepyndexer.html 150 KB 2014-04-08 08:31
filepyndexer.ini 5 KB 2015-08-12 17:39
filepyndexer.py 25 KB 2014-04-08 08:30
filepyndexer.template.css 1 KB 2010-06-28 19:26
filepyndexer.template.html 4 KB 2011-05-16 23:58
filesetup.py 664 bytes 2011-10-19 14:28
fileswfobject.js 7 KB 2010-03-08 14:31
fileupx.exe 298 KB 2013-09-30 18:51

pyndexer - index your public folders (semi) automatically!

Dropbox Forum's discussion thread: http://forums.dropbox.com/topic.php?id=3075

This README is for the 1.2.4 version.
If you do find any bugs, please give feedback on the forum thread listed above.

Description of the script

As it is now, (even after the new sharing model), the files on your Public folder are only public if you know the address to get them, or you want to customize it further - ignore some files, or subfolders, or even password protect some of them.

As a workaround, this script generates an HTML index for a folder and all folders within, with links for files inside each folder.
Optionally it encrypts the listing so only one with the password can see what is listed.
As a bonus it will embed the JW Player to play some mp3 or mp4 files, and more if you want to tweak it.

Install

See the index to locate what you need to download.

Windows (XP, Vista, 7):

Linux, OSX, Windows with python environment:

Usage


Example 1: I want to index two folders (Somethings and Savegames), but want to set a password to Somethings, and not index a subfolder of it called NotSoPublic; in the Savegames folder, I want to display some text that's in another file, after the file listing:
[Somethings]
password=ItsSecret
[Somethings/NoSoPublic]
skipdir=yes
[Savegames]
readme=sometext.txt
Example 2: I want to index your "Public" folder (remember, it will index EVERY subfolder if you do this - use the skipdir option to subfolders you don't want listed!), you need to create a section to the "." (DOT) folder:
[.]
; only a comment to remember that this is the Public folder itself
[SomeSkippedFolder]
skipdir=yes
See more options in the INI folder itself.

Notes:

WARNING: DEFAULTS TO WORK RECURSIVELY.

Meaning it WILL overwrite ALL index.html files in the configured folders and subfolders, if you do not specify the INI:skipdir=yes for the ones you want to protect.
You can use skipdir=index.html if you want the script to just put a link to them in the parent listing:
[SomeFolder]
; normal index
[SomeFolder/FolderWithIndex]
skipdir=index.html

Side note: You can always use the revisions feature of dropbox to revert a lost index.html.

Template

The first thing the script does is check for the pyndexer.template.html file and if not found it will download it to the same folder where it is located. If you want, you can change it but keep in mind that I use a somewhat simplistic parser that will bail in any syntax error. Keep it conforming to the "XML/1.0 Transitional" standard to be safe.

Online play of media files

By default it uses my own template, which means that it will set as playable all MP3 and MP4 files it sees on the indexed folders. If you want to change it, change the template (and the INI:playinbrowser option) to remove/alter this functionality.
The player was tested to work only on the same subdomain as the files, so if you aren't publishing your files from dl.dropbox.com (it's configured in the template and in the jwplay.js file), then you need to publish the dependencies yourself.

Encryption

The EXE version includes the AES support, but if you use the script version, you will need M2Crypto installed.
The M2Crypto library does NOT currently work with python3.
Use apt-get or something else to install it, like:
apt-get install python-m2crypto (ubuntu)
easy_install m2crypto (python's setuptools)
Then just set the INI:password option. Keep in mind that it is not magical, and will NOT encrypt the files, just the links in the HTML index that point to them.
Thanks to Vincent Cheung's jsencript, the user's browser will decrypt it on-the-fly.

Remember, Dropbox is NOT a content distribution system.

ChangeLog

Read it on the script itself, or the pyndexer.html auto-generated beautifully colored file :)

License

Copyleft. Feel free to copy, edit, and share your thoughts and patches ;)

Original: http://dl.dropbox.com/u/552/pyndexer/1.2/_README-FIRST.html
Other versions of pyndexer scripts: http://dl.dropbox.com/u/552/pyndexer/index.html
The pyndexer discussion thread on dropbox forums: http://forums.dropbox.com/topic.php?id=3075
Go to the forum thread, read all you can, maybe your question is already answered. Thanks!

EOF