Let's try this - Dotfiles toggles listing of .* in directory listings.
This commit is contained in:
parent
7cf289ca89
commit
62c1415826
3 changed files with 21 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ textload(Text *t, uint q0, char *file, int setqid)
|
|||
dbuf = nil;
|
||||
while((n=dirread(fd, &dbuf)) > 0){
|
||||
for(i=0; i<n; i++){
|
||||
if(nodotfiles && dbuf[i].name[0] == '.')
|
||||
continue;
|
||||
dl = emalloc(sizeof(Dirlist));
|
||||
j = strlen(dbuf[i].name);
|
||||
tmp = emalloc(j+1+1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue