lib/util/fs.py
def is_directory(path):
    '''
    Returns true if the supplied `path` refers to a valid directory, and
    false otherwise.
    '''
    if not isinstance(path, str):
        raise TypeError('path must be a str: %r' % (path))
    return os.path.exists(path) and os.path.isdir(path)

    Returns true if the supplied `path` refers to a valid directory, and
    false otherwise.
    
Returns true if the supplied `path` refers to a valid directory, and
false otherwise.
Returns true if the supplied ` path ` refers to a valid directory and false otherwise .
def is_directory(path):
    if not isinstance(path, str):
        raise TypeError('path must be a str: %r' % (path))
    return os.path.exists(path) and os.path.isdir(path)
def is_directory ( path ) : if not isinstance ( path , str ) : raise TypeError ( 'path must be a str: %r' % ( path ) ) return os . path . exists ( path ) and os . path . isdir ( path )
Returns true if the supplied `path` refers to a valid directory, and
false otherwise.
Returns true if the supplied ` path ` refers to a valid directory and false otherwise .
'''
    Returns true if the supplied `path` refers to a valid directory, and
    false otherwise.
    '''
path