Merge pull request #3130 from kmlebedev/fix_rm_parent_dir_via_nextcloud

This commit is contained in:
Chris Lu
2022-06-07 08:56:55 -07:00
committed by GitHub
6 changed files with 71 additions and 34 deletions

View File

@@ -17,6 +17,10 @@ func (entry *Entry) IsInRemoteOnly() bool {
return len(entry.Chunks) == 0 && entry.RemoteEntry != nil && entry.RemoteEntry.RemoteSize > 0
}
func (entry *Entry) IsDirectoryKeyObject() bool {
return entry.IsDirectory && entry.Attributes != nil && entry.Attributes.Mime != ""
}
func (entry *Entry) FileMode() (fileMode os.FileMode) {
if entry != nil && entry.Attributes != nil {
fileMode = os.FileMode(entry.Attributes.FileMode)