feat: add mode, user and group info parameters (#1799)
* feat: add mode, user and group info parameters * fix: correct function names * fix: change mode to perm
This commit is contained in:
1 parent
e9cb31f2eb
commit
1c56620f57
5 files changed
+55
-11
No files matched your search
@@ -260,9 +260,9 @@ func (e *setExpr) eval(app *app, args []string) {
|
||||
toks := strings.Split(e.val, ":")
|
||||
for _, s := range toks {
|
||||
switch s {
|
||||
case "size", "time", "atime", "ctime":
|
||||
case "size", "time", "atime", "ctime", "perm", "user", "group":
|
||||
default:
|
||||
app.ui.echoerr("info: should consist of 'size', 'time', 'atime' or 'ctime' separated with colon")
|
||||
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'ctime', 'perm', 'user' or 'group' separated with colon")
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -482,9 +482,9 @@ func (e *setLocalExpr) eval(app *app, args []string) {
|
||||
toks := strings.Split(e.val, ":")
|
||||
for _, s := range toks {
|
||||
switch s {
|
||||
case "size", "time", "atime", "ctime":
|
||||
case "size", "time", "atime", "ctime", "perm", "user", "group":
|
||||
default:
|
||||
app.ui.echoerr("info: should consist of 'size', 'time', 'atime' or 'ctime' separated with colon")
|
||||
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'ctime', 'perm', 'user' or 'group' separated with colon")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user