django-gfiles utils
- gfiles.utils.save_as_symlink.save_as_symlink(abs_pth, name, generic_file_obj, data_file_field_name='data_file')
- Takes a
gfiles.models.GenericFilesobject and saves a symlink of the file to the absolute path (abs_pth).
Can also work with any model class that has FileField named with the data_file_field_name variable
- Parameters:
abs_pth – path to the file to symlink to
name – Name to save to the file as
generic_file_obj –
gfiles.models.GenericFilesobject
- Returns:
updated
gfiles.models.GenericFilesobject with symlink
- Takes a