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
943a0f75
Commit
943a0f75
authored
Mar 16, 2020
by
Peter Rabbitson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass less filehandle metadata in the case of a fifo
parent
8a684227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cli/parse.go
cli/parse.go
+6
-1
No files found.
cli/parse.go
View file @
943a0f75
...
...
@@ -518,7 +518,12 @@ func appendFile(fpath string, argDef *cmds.Argument, recursive, hidden bool) (fi
if
err
!=
nil
{
return
nil
,
err
}
return
files
.
NewReaderPathFile
(
fpath
,
file
,
stat
)
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
.
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