# Path: historisation/historisation/storage.py
# class Storage(object):
#     # returns a string with the content of the file or None if it does not exist.
#     def get(self, path):
#         pass
# 
#     # returns true if the file exists
#     def exists(self, path):
#         pass
# 
#     # saves a file-like object at the given location
#     def save(self, path, file):
#         pass
# 
#     # returns a list of directories from the root
#     def get_dirs(self):
#         pass
# 
#     # returns the files from a given directory
#     def get_files(self, path):
#         pass
# 
#     # creates a new directory
#     def mkdir(self, path):
#         pass
# 
#     # moves
#     def move(self, source, dest):
#         pass
# 
#     # join
#     def join(self, *paths):
#         pass


from ftplib import FTP, error_perm, all_errors, error_temp
from ..storage import Storage
import io
import logging


logger = logging.getLogger(__name__)


class FTPStorage(Storage):
    def __init__(self, root_dir='/historisation', host='localhost', username=None, password=None):

# Path: historisation/historisation/storage.py
# class Storage(object):
#     # returns a string with the content of the file or None if it does not exist.
#     def get(self, path):
#         pass
# 
#     # returns true if the file exists
#     def exists(self, path):
#         pass
# 
#     # saves a file-like object at the given location
#     def save(self, path, file):
#         pass
# 
#     # returns a list of directories from the root
#     def get_dirs(self):
#         pass
# 
#     # returns the files from a given directory
#     def get_files(self, path):
#         pass
# 
#     # creates a new directory
#     def mkdir(self, path):
#         pass
# 
#     # moves
#     def move(self, source, dest):
#         pass
# 
#     # join
#     def join(self, *paths):
#         pass


# Path: historisation/historisation/storages/ftp.py
from ftplib import FTP, error_perm, all_errors, error_temp
from ..storage import Storage
import io
import logging



logger = logging.getLogger(__name__)


class FTPStorage(Storage):
    def __init__(self, root_dir='/historisation', host='localhost', username=None, password=None):

        super(Storage, self).__init__()