@@ -27,7 +27,7 @@ import {
27
27
TableStyle
28
28
} from '@kui-shell/core'
29
29
30
- import { FStat , GlobStats } from '..'
30
+ import { GlobStats } from '..'
31
31
import { localFilepath } from './usage-helpers'
32
32
33
33
const dateFormatter = speedDate ( 'MMM DD HH:mm' )
@@ -161,14 +161,17 @@ function attrs(
161
161
const perms = wide && hasPermissions ? [ { value : formatPermissions ( entry ) , outerCSS : outerCSSSecondary } ] : [ ]
162
162
const uid = wide && hasUid ? [ { value : formatUid ( entry ) , outerCSS : outerCSSSecondary , css : cssSecondary } ] : [ ]
163
163
const gid = wide && hasGid ? [ { value : formatGid ( entry ) , outerCSS : outerCSSSecondary , css : cssSecondary } ] : [ ]
164
- const size = wide && hasSize ? [ { value : prettyBytes ( entry . stats . size ) . replace ( / \s / g, '' ) , outerCSS : '' } ] : [ ]
164
+ const size =
165
+ wide && hasSize
166
+ ? [ { value : prettyBytes ( entry . stats . size ) . replace ( / \s / g, '' ) , outerCSS : '' , css : 'yellow-text' } ]
167
+ : [ ]
165
168
const lastMod =
166
169
wide && hasMtime
167
170
? [
168
171
{
169
172
value : prettyTime ( entry . stats . mtimeMs ) ,
170
173
outerCSS : outerCSSLesser ,
171
- css : `${ cssLesser } ${ cssSecondary } pre-wrap`
174
+ css : `${ cssLesser } ${ cssSecondary } pre-wrap sub-text `
172
175
}
173
176
]
174
177
: [ ]
@@ -254,9 +257,7 @@ const doLs = (cmd: string) => async (opts: Arguments<LsOptions>): Promise<MixedR
254
257
const entries = ( await opts . REPL . rexec < GlobStats [ ] > ( cmdline ) ) . content
255
258
256
259
if ( entries . length === 0 ) {
257
- const isDirs = await Promise . all (
258
- srcs . map ( _ => opts . REPL . rexec < FStat > ( `vfs fstat ${ encodeComponent ( _ ) } ` ) . then ( _ => _ . content . isDirectory ) )
259
- )
260
+ const isDirs = entries . map ( _ => _ . dirent . isDirectory )
260
261
if ( isDirs . some ( _ => ! _ ) ) {
261
262
// ls on at least one non-directory yielded no entries (converseley: it is not an error if an ls on only-directories yielded no entries)
262
263
const error : CodedError = new Error (
0 commit comments