def constructFilename(customerID, packetID): customerDirName = nameurl.UrlFilename(customerID) customersDir = settings.getCustomersFilesDir() if not os.path.exists(customersDir): dhnio._dir_make(customersDir) ownerDir = os.path.join(customersDir, customerDirName) if not os.path.exists(ownerDir): dhnio._dir_make(ownerDir) filename = os.path.join(ownerDir, packetID) return filename
def make_rating_dir(idurl): dhnio._dir_make(rating_dir(idurl))