cc-4105: refactored how watched, stored directories are handled

This commit is contained in:
Rudi Grinberg 2012-08-01 13:52:44 -04:00
parent ad12926af2
commit 3b1583f620
7 changed files with 84 additions and 45 deletions

View file

@ -38,3 +38,10 @@ class FailedToCreateDir(Exception):
self.path = path
self.parent = parent
def __str__(self): return "Failed to create path '%s'" % self.path
class NoDirectoryInAirtime(Exception):
def __init__(self,path, does_exist):
self.path = path
self.does_exist = does_exist
def __str__(self):
return "Directory '%s' does not exist in Airtime.\nHowever: %s do exist." % (self.path, self.does_exist)