in ees_network_drive/sync_network_drives.py [0:0]
def connect_and_get_all_folders(self):
"""Connects to the Network drive and returns the list of all the folders present on the Network drive"""
smb_connection = self.network_drive_client.connect()
if not smb_connection:
raise Exception("Unkown error while connecting to the Network Drives")
store = []
files = Files(self.logger, self.config, self.network_drive_client)
store = files.recursive_fetch(
smb_connection=smb_connection,
service_name=self.drive_path.parts[0],
path=os.path.join(*self.drive_path.parts[1:]),
store=[],
)
smb_connection.close()
return store