feat: Add OsFs-compliant support for Readlink, Symlink and Lstat

This commit is contained in:
Felicitas Pojtinger
2022-01-16 18:03:43 +01:00
parent f2c6c65a53
commit 2a28fa3b5f
6 changed files with 229 additions and 153 deletions

View File

@@ -260,7 +260,7 @@ func (p *MetadataPersister) GetHeaderDirectChildren(ctx context.Context, name st
headers := []*config.Header{}
// Root node
if pathext.IsRoot(name) {
if pathext.IsRoot(name, false) {
prefix = ""
depth := depth{}
@@ -455,7 +455,7 @@ func (p *MetadataPersister) headerExistsExact(ctx context.Context, name string)
func (p *MetadataPersister) getSanitizedPath(ctx context.Context, name string) string {
// If root is queried, return actual root
if pathext.IsRoot(name) {
if pathext.IsRoot(name, false) {
return p.root
}