def getSubfolderWithBasename(basename, directory):
 archive.makeDirectory(directory)
 directoryListing = os.listdir(directory)
 for fileName in directoryListing:
  joinedFileName = os.path.join(directory, fileName)
  if os.path.isdir(joinedFileName):
   if (basename == fileName):
    return joinedFileName
 return None

def getSubfolderWithBasename ( basename , directory ) : archive . makeDirectory ( directory ) directoryListing = os . listdir ( directory ) for fileName in directoryListing : joinedFileName = os . path . join ( directory , fileName ) if os . path . isdir ( joinedFileName ) : if ( basename == fileName ) : return joinedFileName return None
get the subfolder in the directory with the basename .