django-gfiles utils¶
-
gfiles.utils.save_as_symlink.
save_as_symlink
(abs_pth, name, generic_file_obj)[source]¶ - Takes a
gfiles.models.GenericFiles
object and saves a symlink of the file to the absolute path - (abs_pth).
Parameters: - abs_pth – path to the file to symlink to
- name – Name to save to the file as
- generic_file_obj –
gfiles.models.GenericFiles
object
Returns: updated
gfiles.models.GenericFiles
object with symlink- Takes a