[File Manager] 文件类型问题
Tofloor
poster avatar
云的眼泪
deepin
2023-02-15 03:34
Author

同样的文件,有的显示为压缩文件,有的显示为文档,其实都是dll库文件

20.8
image.png

Reply Favorite View the author
All Replies
那一个夜晚
deepin
2023-02-15 03:43
#1

这就有点尴尬了

Reply View the author
青稚
deepin
2023-02-15 03:43
#2

这是一个bug,不过不影响使用吧!

Reply View the author
wlly-lzh
deepin
2023-02-15 05:03
#3

我猜这不是linux的文件吧,应该是windows上的吧,有没有可能是linux对windows文件的误判?

Reply View the author
云的眼泪
deepin
2023-02-15 16:10
#4
wlly-lzh

我猜这不是linux的文件吧,应该是windows上的吧,有没有可能是linux对windows文件的误判?

应该是

Reply View the author
fuuko
deepin
2023-02-15 16:40
#5
青稚

这是一个bug,不过不影响使用吧!

也可能是feature,因为Linux下面是依靠mime type来解析文件类型的,涉及读取文件本身的数据

Reply View the author
ad1998
deepin
2023-02-15 18:32
#6
青稚

这是一个bug,不过不影响使用吧!

这是一个技术能力的问题

Reply View the author
xuqi
deepin testing team
2023-02-15 18:54
#7
  • 后缀名不是唯一决定因素,要看文件的mimetype
  • mimetype xxx(文件名)可以看到具体的文件类型~~
Reply View the author
xuqi
deepin testing team
2023-02-15 18:54
#8

企业微信截图_16764291092904.png

Reply View the author
blue_whale
deepin
2023-02-15 19:08
#9

新建一个test.txt的文件, 里面的内容只有:

one line

然后复制这个文件到test.dll和test.tar

图片.png

Reply View the author
wlly-lzh
deepin
2023-02-15 23:03
#10
blue_whale

新建一个test.txt的文件, 里面的内容只有:

one line

然后复制这个文件到test.dll和test.tar

图片.png

好吧看来是文件管理器的问题,这是一个设计问题。

Reply View the author
wlly-lzh
deepin
2023-02-15 23:11
#11
xuqi
  • 后缀名不是唯一决定因素,要看文件的mimetype
  • mimetype xxx(文件名)可以看到具体的文件类型~~

我一直是用file xxx的,试了一下这个mimetype 命令,并不靠谱呀。

和9楼一样的操作,这是终端的显示:

l.tar: application/x-tar

l.dll: text/plain

Reply View the author
hidiyou
deepin
2023-02-16 04:41
#12
wlly-lzh

好吧看来是文件管理器的问题,这是一个设计问题。

不是,而是文件类型看文件内容

Reply View the author