Windows 中某文件夹有个属性不明的“分身”

我的 D 盘 (NTFS 格式) 中,有一个 document 文件夹和一个 Document,两个文件夹中文件应该是完全一样的,并且两个文件夹中增删文件是同步的。

在资源管理器中可以看到:

cmd 中使用 dir 命令,显示的类型都是 <DIR>:

在  中使用

PowerShell 中使用 ls (Get-ChildItem) 命令,创建日期较晚的 document 文件夹的 Mode 是 da

在  中使用

Microsoft 的文档 中显示:

The letters in the Mode property can be interpreted as follows:

  • l (link)
  • d (directory)
  • a (archive)

文档 中解释 a (archive) 为:

This file is marked to be included in incremental backup operation. Windows sets this attribute whenever the file is modified, and backup software should clear it when processing the file during incremental backup.

Duplicate CleanerXYplorerCalibre 这些软件中, document 文件夹似乎就被视为 Document.在 XYplorer 中打开 document 文件夹后,路径栏显示的路径为:D:\Files\Document,而在资源管理器中,打开 document 文件夹后显示的路径仍为 document

资源管理器中打开 document

始终 博客的 Windows 中的 mklink 命令 一文中整理了如下的速查表:

从表中看,我遇到的似乎不是符号链接、硬链接或软连接之类的情况。

各位谁知道这是个啥情况吗 :joy: 我想清理掉其中一个多余的文件夹。

把文件夹移动到 u盘

然后再复制回来试试.

如果要查看, 我建议试试winrar看看目录树, 或者用其他系统工具比如 winhex之类的试试.

大概想到是什么原因了。

Document (document )文件夹里有 Calibre 的书库文件夹,而我 Windows 和 Linux 中的 Calibre 都使用这个书库文件夹。因为 Windows 和 Linux 对路径名大小写的要求不一样,所以出现了这种奇怪的情况。

里边的文件内容是否一致?

你写的应该是一样的这个没办法判定。如果内容完全一致才有意思
内容不一致,那明显就是大小写的差异