Re:lc: List files in categories (and columns) – from Coheren...
by boxed on Friday January 10, 2025 @07:24AM
(#42655018)
The categories being "files" and "directories"? So just two categories?
[ Parent
| on HN ]
Re:lc: List files in categories (and columns) – from Coheren...
by tyingq on Friday January 10, 2025 @07:43AM
(#42655124)
if (dflag)
prtype(dirs, "Directories");
if (fflag)
prtype(files, "Files");
if (lflag)
prtype(links, "Symlinks");
if (cflag)
prtype(chars, "Character special files");
if (bflag)
prtype(blocks, "Block special files");
if (pflag)
prtype(pipes, "Pipes");
if (mflag)
prtype(mults, "Multiplexed files");
Re:lc: List files in categories (and columns) – from Coheren...
by mrweasel on Friday January 10, 2025 @12:36PM
(#42657799)
Categories are difference from what I expected as well, I was thinking file types.
This is really nice though. I do like that directories and files are separate. You could probably hack this a bit and give you directories, git repos and files. I know that a git repo is just a directory, with special files, but it's surprisingly often that I find myself wondering if a directory is a git repo.