From 9eb857396aef45746b2713b2575ac31034830765 Mon Sep 17 00:00:00 2001 From: robweber Date: Fri, 26 Oct 2012 09:42:10 -0500 Subject: [PATCH] modified backup.py to test dropbox api added start of vfs.py to abstract file repos --- resources/lib/backup.py | 2 +- resources/lib/vfs.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 resources/lib/vfs.py diff --git a/resources/lib/backup.py b/resources/lib/backup.py index edb5133..f525f9e 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -1,7 +1,7 @@ import xbmc import xbmcgui import xbmcvfs -from resources.dropbox import client, rest, session +from dropbox import client, rest, session import utils as utils import os import time diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py new file mode 100644 index 0000000..53b0f86 --- /dev/null +++ b/resources/lib/vfs.py @@ -0,0 +1,17 @@ +import utils as utils + +class Vfs: + type = 'none' + + def __init__(type): + self.type = type + + def listdir(directory): + return {} + + def mkdir(directory): + return True + + def copy(source,dest): + return True +