aleph
aleph copied to clipboard
Storing the samples
Hi,
I was thinking in save the samples in a separate directory, based in your sha256, similar to project VxCage (https://github.com/neriberto/vxcage/blob/master/utils.py#L33).
What do you think about it guys?
The samples are flatly stored on the samples directory. I know this has issues with number of files and such and the beginning of the hash should be used as directory.
Thing is the whole sample storage will be refactored to support pluggable storages, like plugins, user may choose from different storage types / approaches.
This is still to be discussed. Any ideas are appreciated.
You may want to see Django File Storage API to extract some ideas to design this plugin system. ;-) People use it to implement many kinds of storage for Django, such as uploading directly to AWS S3, MongoDB etc. You can look at how to write a custom storage system.