def directory()

in collection_manager/collection_manager/entities/Collection.py [0:0]


    def directory(self):
        if urlparse(self.path).scheme == 's3':
            return self.path
        elif os.path.isdir(self.path):
            return self.path
        else:
            return os.path.dirname(self.path)