def buildDirPath(currentIndex): dirPath = '' if currentIndex == 1: dirPath = amu.getProductionDir() + '/previs/' else: dirPath = amu.getProductionDir() + '/shots/' return dirPath
def removeFolder(currentlySelected, context): # First build path. if context == 1: dirPath = str(amu.getProductionDir() + '/previs/' + currentlySelected) else: dirPath = str(amu.getProductionDir() + '/shots/' + currentlySelected) if not canRemove(dirPath): raise Exception("Cannot remove directory: " + str(dirPath)) shutil.rmtree(dirPath)
def removeFolder(currentlySelected, context): # First build path. if context == 1: dirPath = str(amu.getProductionDir() + '/previs/' + currentlySelected) else: dirPath = str(amu.getProductionDir() + '/shots/' + currentlySelected) if not canRemove(dirPath): raise Exception ("Cannot remove directory: " + str(dirPath)) shutil.rmtree(dirPath)