Glider
Loading...
Searching...
No Matches
src.upload_module.gdrive.FileCleaning Namespace Reference

Functions

 get_path (local_path)
 
 download_local_file (event, local_path)
 
 run_file_cleaning (event)
 

Constants

 f_path = __file__
 
 index = f_path.find("upload_module/")
 

Function Documentation

◆ download_local_file()

src.upload_module.gdrive.FileCleaning.download_local_file ( event,
local_path )
Downloads files uploaded directly via Otto Light interface in a temporal folder

Args:
    event (dict): Contains the bucket and folder info where file was uploaded
    local_path (str): Root path where is saved files
Returns : Nothing

Definition at line 35 of file FileCleaning.py.

Here is the caller graph for this function:

◆ get_path()

src.upload_module.gdrive.FileCleaning.get_path ( local_path)
Adds the last folder downloaded to root path

Args:
    local_path (str): Root path where is saved files
Returns : The actual folder where files where downloaded

Definition at line 18 of file FileCleaning.py.

Here is the caller graph for this function:

◆ run_file_cleaning()

src.upload_module.gdrive.FileCleaning.run_file_cleaning ( event)
Transform Gdrive link to ID drive to be downloaded by Google API and execute all procedure

Args:
    event (dict): Shared link of the folder/file to download
Returns : The actual folder where files where downloaded

Definition at line 61 of file FileCleaning.py.

Here is the call graph for this function:

Constant Documentation

◆ f_path

src.upload_module.gdrive.FileCleaning.f_path = __file__

Definition at line 8 of file FileCleaning.py.

◆ index

src.upload_module.gdrive.FileCleaning.index = f_path.find("upload_module/")

Definition at line 9 of file FileCleaning.py.