def is_readable(path):
    '''
    Returns True if provided file or directory exists and can be read with the current user.
    Returns False otherwise.
    '''
    return os.access(os.path.abspath(path), os.R_OK)
def is_readable ( path ) : return os . access ( os . path . abspath ( path ) , os . R_OK )
Returns True if provided file or directory exists and can be read with the current user.
    Returns False otherwise.