|Farhan Khan f6cf21af57 Updated tests, all Inodes now have rootname populated.||3 years ago|
|file_repository||3 years ago|
|testapp||3 years ago|
|.gitignore||3 years ago|
|LICENSE||3 years ago|
|README.md||3 years ago|
|manage.py||3 years ago|
This is my attempt at writing a file system repository system. It allows you to view system files in a hierarchical manner, rather than all in a single directory or folder.
Models.FileField() only stores files in a single directory. You can specify a ‘upload_to’ directory, but that still only creates a single repository directory where all files are stored. This code adds an abstraction layer to help organize files in a hierarchical manner.
Licensed under the BSD. You don’t have to return your code to me, but it would be nice :)
The testapp requires the python-magic module. You can install as follows:
pip install python-magic
I have not yet figured out how to add an initializer in a migration, so you will have to create an initial root Inode.
If you do not do this, it will return a 500 error message.
By default, files are uploaded into file_repository/_file. You can change that path here.
This is my first public submission to the Internets. Please review my code and provide suggestions. Few things I need help on.
First, I use regular expressions a few times in this project. I am still new to regex and it would be nice to have it reviewed.
Second, I am not yet versed in writing Django unittests. Some unittests would be nice!