Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 3
0
 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))