weed mount add symlink support

This commit is contained in:
Chris Lu
2018-12-25 22:45:44 -08:00
parent a508d56021
commit 253f190f48
6 changed files with 195 additions and 115 deletions

View File

@@ -8,17 +8,18 @@ import (
)
type Attr struct {
Mtime time.Time // time of last modification
Crtime time.Time // time of creation (OS X only)
Mode os.FileMode // file mode
Uid uint32 // owner uid
Gid uint32 // group gid
Mime string // mime type
Replication string // replication
Collection string // collection name
TtlSec int32 // ttl in seconds
UserName string
GroupNames []string
Mtime time.Time // time of last modification
Crtime time.Time // time of creation (OS X only)
Mode os.FileMode // file mode
Uid uint32 // owner uid
Gid uint32 // group gid
Mime string // mime type
Replication string // replication
Collection string // collection name
TtlSec int32 // ttl in seconds
UserName string
GroupNames []string
SymlinkTarget string
}
func (attr Attr) IsDirectory() bool {