Exemple #1
0
 def ensure_root(self):
     """
     See if the exchange directory exists and readable, fail if not.
     We do not need to make the exchange root writable by default.
     """
     if not check_directory(self.root, read=True, execute=True):
         self.fail(
             "Unreadable directory, please contact your instructor: {}".
             format(self.root))
Exemple #2
0
 def ensure_exchange_directory(self):
     """See if the exchange directory exists and is writable, fail if not."""
     if not check_directory(self.exchange_directory, write=True, execute=True):
         self.fail("Unwritable directory, please contact your instructor: {}".format(self.exchange_directory))
 def ensure_root(self):
     """See if the exchange directory exists and is writable, fail if not."""
     if not check_directory(self.root, write=True, execute=True):
         self.fail(
             "Unwritable directory, please contact your instructor: {}".
             format(self.root))