DMAdb documentation
0.1.0
  • Getting started
  • ISA
  • Galaxy
  • Data & results
  • API - django-mogi
  • API - django-galaxy
  • API - django-gfiles
    • API Reference
      • API Modules
        • models
        • views
        • filters
        • tables
        • utils
    • Setup
  • Contacts
DMAdb documentation
  • django-gfiles
  • API reference
  • django-gfiles utils
  • View page source

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.GenericFiles object 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.GenericFiles object

Returns:

updated gfiles.models.GenericFiles object with symlink

Previous Next

© Copyright 2024, University of Birmingham.

Built with Sphinx using a theme provided by Read the Docs.