def valid_dir(path): ''' Check wether the path is a correct directory located data. ''' try: tracker = ajaxInstance.open(path) except: tracker = None PRINT( sys.exc_info()) return tracker
def valid_dir(path): """ Check wether the path is a correct directory located data. """ try: tracker = ajaxInstance.open(path) except: tracker = None print sys.exc_info() return tracker