pycortex icon indicating copy to clipboard operation
pycortex copied to clipboard

Option to clean up cruft files or export necessary files for a subject

Open marklescroart opened this issue 10 years ago • 1 comments

In transferring subjects to my laptop, it has come to my attention that there are several (sometimes many) files that are not strictly necessary for each subject. For example, the blender files that are used for surface cuts store backups (.blend1 and .blend2 files) that are as large as the blender files, and the whole cache directory is not strictly necessary.

It would be good to have an optional cleanup function that would remove all such unnecessary files in preparation for transfer, or (perhaps better) that would export only the necessary files for a given subject into a directory somewhere else (or a .tar.gz file, or a whatever). For one of our local subjects, I selectively removed files, and reduced the size of the directory for that subject from 863 MB to 176 MB. For transfer of multiple subjects, this could be pretty useful.

marklescroart avatar Dec 02 '15 07:12 marklescroart

This could be very elegantly implemented with git and/or git-annex. It would allow us to automatically check in relevant files, clone entire filestores, and implement version tracking for various subjects.

jamesgao avatar Jun 13 '16 22:06 jamesgao