コード例 #1
0
ファイル: spl.py プロジェクト: CodeOps/hippyvm
def di_is_dir(interp, this):
    if this.w_dir_res.index < this.w_dir_res.no_of_items:
        item = _di_pathname(this)
    else:
        item = this.path
    assert item is not None
    return _is_dir(interp.space, item)
コード例 #2
0
ファイル: spl.py プロジェクト: CodeOps/hippyvm
def rdi_has_children(interp, this):
    if this.w_dir_res.index < this.w_dir_res.no_of_items:
        if this.w_dir_res.items[this.w_dir_res.index] not in ('.', '..'):
            item = _di_pathname(this)
            assert item is not None
            return _is_dir(interp.space, item)
    return interp.space.w_False
コード例 #3
0
def di_is_dir(interp, this):
    if this.w_dir_res.index < this.w_dir_res.no_of_items:
        item = _di_pathname(this)
    else:
        item = this.path
    assert item is not None
    return _is_dir(interp.space, item)
コード例 #4
0
def rdi_has_children(interp, this):
    if this.w_dir_res.index < this.w_dir_res.no_of_items:
        if this.w_dir_res.items[this.w_dir_res.index] not in ('.', '..'):
            item = _di_pathname(this)
            assert item is not None
            return _is_dir(interp.space, item)
    return interp.space.w_False
コード例 #5
0
ファイル: spl.py プロジェクト: CodeOps/hippyvm
def is_dir(interp, this):
    filename = this.file_name
    assert filename is not None
    return _is_dir(interp.space, filename)
コード例 #6
0
ファイル: spl.py プロジェクト: netyum/hippyvm
def is_dir(interp, this):
    filename = this.file_name
    assert filename is not None
    return _is_dir(interp.space, filename)