use abs path to construct FileManager
This commit is contained in:
parent
54b3eafd6d
commit
30e2642f4d
@ -44,7 +44,12 @@ func ClientFstore(r repo.LockedRepo) (dtypes.ClientFilestore, error) {
|
||||
}
|
||||
blocks := namespace.Wrap(clientds, datastore.NewKey("blocks"))
|
||||
|
||||
fm := filestore.NewFileManager(clientds, filepath.Dir(r.Path()))
|
||||
absPath, err := filepath.Abs(r.Path())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fm := filestore.NewFileManager(clientds, filepath.Dir(absPath))
|
||||
fm.AllowFiles = true
|
||||
// TODO: fm.AllowUrls (needs more code in client import)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user