code: def sub(self, path):
          
  
          if is_collection(path):
              path = path_join(path)
  
          return AppDir(path_join(self.path, path))
docs: Returns AppDir instance for given subdirectory name.