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-unixfs
Commits
dd66a0cf
Commit
dd66a0cf
authored
May 16, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove URL field
We now just use the AbsPath field for both URLs and file paths.
parent
4f9863c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
importer/helpers/dagbuilder.go
importer/helpers/dagbuilder.go
+0
-9
No files found.
importer/helpers/dagbuilder.go
View file @
dd66a0cf
...
...
@@ -65,11 +65,6 @@ type DagBuilderParams struct {
// NoCopy signals to the chunker that it should track fileinfo for
// filestore adds
NoCopy
bool
// URL if non-empty (and NoCopy is also true) indicates that the
// file will not be stored in the datastore but instead retrieved
// from this location via the urlstore.
URL
string
}
// New generates a new DagBuilderHelper from the given params and a given
...
...
@@ -87,10 +82,6 @@ func (dbp *DagBuilderParams) New(spl chunker.Splitter) (*DagBuilderHelper, error
db
.
stat
=
fi
.
Stat
()
}
if
dbp
.
URL
!=
""
&&
dbp
.
NoCopy
{
db
.
fullPath
=
dbp
.
URL
}
if
dbp
.
NoCopy
&&
db
.
fullPath
==
""
{
// Enforce NoCopy
return
nil
,
ErrMissingFsRef
}
...
...
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