mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-31 01:28:27 +00:00
Update s3fs_util.cpp
Nextcloud Compatibility in directory mime-types
This commit is contained in:
parent
4ed0e5f35a
commit
743c706b0a
@ -814,7 +814,7 @@ 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"){
|
||||
if(strConType == "application/x-directory" || strConType == "httpd/unix-directory"){
|
||||
mode |= S_IFDIR;
|
||||
}else if(path && 0 < strlen(path) && '/' == path[strlen(path) - 1]){
|
||||
if(strConType == "binary/octet-stream" || strConType == "application/octet-stream"){
|
||||
|
Loading…
x
Reference in New Issue
Block a user