Let's try this - Dotfiles toggles listing of .* in directory listings.

This commit is contained in:
rsc 2004-04-08 19:30:18 +00:00
parent 7cf289ca89
commit 62c1415826
3 changed files with 21 additions and 0 deletions

View file

@ -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);