good morning!!!!
Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
v1.9.5
· 0ca219de
a
authored
Sep 03, 2022
0ca219de
Hide whitespace changes
Inline
Side-by-side
filing/api_weed/weed_api.go
View file @
0ca219de
...
...
@@ -6,6 +6,7 @@ import (
"io"
"net/http"
"strconv"
"strings"
"gfx.cafe/open/goutil/constants"
"gfx.cafe/open/goutil/filing"
...
...
@@ -39,7 +40,11 @@ type envelope struct {
}
func
(
F
*
Client
)
Meta
(
file
string
)
(
filing
.
HashedFileInfo
,
error
)
{
head
,
err
:=
F
.
c
.
Get
(
file
+
"?metadata=true"
)
fn
:=
file
if
!
strings
.
HasSuffix
(
fn
,
"/"
)
{
fn
=
fn
+
"?metadata=true"
}
head
,
err
:=
F
.
c
.
Get
(
fn
)
if
err
!=
nil
{
return
nil
,
err
}
...
...