51
55
def getLocalFolderRecord(folder_localpath, db_session):
52
56
'''Query the local database and return the first non-deleted folder record'''
53
57
dbfolder_ = db_session.query(SyncFile).filter_by(
54
58
full_path=folder_localpath) \
55
59
.filter((SyncFile.file_deleted != True)
57
61
.filter(SyncFile.directory == True) \
65
80
'''Data related to local files to be included in the sync/backup'''
66
81
__tablename__ = 'syncfiles'