<s> import os <EOL> import glob <EOL> from utils import sh , e , info , error <EOL> def main ( ) : <EOL> ref_date = <NUM_LIT:0> <EOL> rel_dir = '<STR_LIT>' <EOL> dirstring = e ( '<STR_LIT>' ) <EOL> for x in glob . glob ( "<STR_LIT>" . format ( dirstring ) ) : <EOL> if e ( '<STR_LIT>' ) not in os . listdir ( x ) : <EOL> continue <EOL> if os . lstat ( x ) . st_ctime > ref_date : <EOL> ref_date = os . lstat ( x ) . st_ctime <EOL> rel_dir = x <EOL> if not rel_dir : <EOL> error ( '<STR_LIT>' ) <EOL> if e ( '<STR_LIT>' ) . lower ( ) in [ "<STR_LIT>" , "<STR_LIT>" ] : <EOL> appending_path = e ( '<STR_LIT>' ) <EOL> else : <EOL> appending_path = e ( '<STR_LIT>' ) <EOL> internal_path = os . path . join ( e ( '<STR_LIT>' ) , appending_path ) <EOL> if os . path . exists ( internal_path ) : <EOL> internal_path = os . path . join ( internal_path , os . path . basename ( rel_dir ) ) <EOL> sh ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> info ( '<STR_LIT>' ) <EOL> main ( ) </s>
