Tweak
This commit is contained in:
parent
3f8576a6ab
commit
58d8a213b0
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ static void prim_readDir(EvalState & state, const Pos & pos, Value * * args, Val
|
||||||
Value * ent_val = state.allocAttr(v, state.symbols.create(ent.name));
|
Value * ent_val = state.allocAttr(v, state.symbols.create(ent.name));
|
||||||
if (ent.type == DT_UNKNOWN)
|
if (ent.type == DT_UNKNOWN)
|
||||||
ent.type = getFileType(path);
|
ent.type = getFileType(path);
|
||||||
mkString(*ent_val,
|
mkStringNoCopy(*ent_val,
|
||||||
ent.type == DT_REG ? "regular" :
|
ent.type == DT_REG ? "regular" :
|
||||||
ent.type == DT_DIR ? "directory" :
|
ent.type == DT_DIR ? "directory" :
|
||||||
ent.type == DT_LNK ? "symlink" :
|
ent.type == DT_LNK ? "symlink" :
|
||||||
|
|
Loading…
Reference in a new issue