rec_to_nwb.processing.tools.file_downloader

Module to download a file from url

Class:

FileDownloader()

Module Contents

Classes

FileDownloader(url='https://www.dropbox.com/s/a7ddruxoffgbe7y/AC13_d27_WhereAreWeNow.rec?dl=1', download_path='../data/file.rec')

Class to download a file

path
logger
class FileDownloader(url='https://www.dropbox.com/s/a7ddruxoffgbe7y/AC13_d27_WhereAreWeNow.rec?dl=1', download_path='../data/file.rec')

Bases: rec_to_nwb.processing.tools.abstract_file_downloader.AbstractFileDownloader

Class to download a file

download_file()
start_downloading()
Variable:
var download_path

path where file should be saved

var url

url to file

download_file(self, url='')

Check if User type custom url. If yes, start downloading, if no check if file already exist. If no, start downloading from default url.

Parameters:
param url

custom url to file

start_downloading(self, url)

Start downloading from url and save file to default path

:param : param url: url to file