Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
5fd040bc
Commit
5fd040bc
authored
Mar 16, 2020
by
Peter Rabbitson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify even further as per zoom convo
parent
943a0f75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
cli/parse.go
cli/parse.go
+1
-5
No files found.
cli/parse.go
View file @
5fd040bc
...
...
@@ -519,11 +519,7 @@ func appendFile(fpath string, argDef *cmds.Argument, recursive, hidden bool) (fi
return
nil
,
err
}
return
files
.
NewReaderPathFile
(
""
,
// the path string should only refer to files that can actually be read. The filestore/urlstore features will use it
file
,
nil
,
// normally the passed through stat will be used to determine the size of the file. It'll give us very incorrect information in this case
)
return
files
.
NewReaderFile
(
file
),
nil
}
return
files
.
NewSerialFile
(
fpath
,
hidden
,
stat
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment