From 18cb2e2662e35f9e5fa3257e91bcbc0a42fe9837 Mon Sep 17 00:00:00 2001 From: LutzFinsterle2019 <46425320+LutzFinsterle2019@users.noreply.github.com> Date: Thu, 10 Jan 2019 07:44:36 +0100 Subject: [PATCH] Update s3fs_util.cpp Sorry for answering late, have been busy lately. The comment is: "Nextcloud stores Directory objects with this mime type when mounting a Bucket as external Storage" --- src/s3fs_util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/s3fs_util.cpp b/src/s3fs_util.cpp index ce85254..377af19 100644 --- a/src/s3fs_util.cpp +++ b/src/s3fs_util.cpp @@ -814,7 +814,8 @@ mode_t get_mode(headers_t& meta, const char* path, bool checkdir, bool forcedir) if(string::npos != pos){ strConType = strConType.substr(0, pos); } - if(strConType == "application/x-directory" || strConType == "httpd/unix-directory"){ + if(strConType == "application/x-directory" + || strConType == "httpd/unix-directory"){ # Nextcloud uses this MIME type for directory objects when mounting bucket as external Storage mode |= S_IFDIR; }else if(path && 0 < strlen(path) && '/' == path[strlen(path) - 1]){ if(strConType == "binary/octet-stream" || strConType == "application/octet-stream"){