def make_temporary_directory(base_path):
 if (not base_path.exists()):
  base_path.makedirs()
 temp_dir = tempfile.mkdtemp(dir=base_path.path)
 return FilePath(temp_dir)

def make_temporary_directory ( base_path ) : if ( not base_path . exists ( ) ) : base_path . makedirs ( ) temp_dir = tempfile . mkdtemp ( dir = base_path . path ) return FilePath ( temp_dir )
create a temporary directory beneath base_path .