繁体   English   中英

在Windows 10中复制文件会更改其大小

[英]Copying file in Windows 10 changes its size

通过将文件从资源管理器拖到Eclipse中的文件夹,我将文件复制到Windows 10中的新目录。 即使fc将原始文件和新文件显示为相同,复制的文件的文件大小也会更改。 原始文件的大小为209,715,200字节(200 MiB):

c:\>dir c:\Users\GeoffAlexander\Documents\Python\200MiB.txt
 Volume in drive C is Windows
 Volume Serial Number is 0447-709A

 Directory of c:\Users\GeoffAlexander\Documents\Python

08/13/2019  09:42 AM       209,715,200 200MiB.txt
               1 File(s)    209,715,200 bytes
               0 Dir(s)  268,331,835,392 bytes free

新文件的大小为211,812,352字节:

c:\>dir c:\Users\GeoffAlexander\Desktop\200MiB.txt
 Volume in drive C is Windows
 Volume Serial Number is 0447-709A

 Directory of c:\Users\GeoffAlexander\Desktop

08/15/2019  09:11 AM       211,812,352 200MiB.txt
               1 File(s)    211,812,352 bytes
               0 Dir(s)  268,232,798,208 bytes free

fc命令显示文件相同:

c:\>fc c:\Users\GeoffAlexander\Documents\Python\200MiB.txt c:\Users\GeoffAlexander\Desktop\200MiB.txt
Comparing files C:\USERS\GEOFFALEXANDER\DOCUMENTS\PYTHON\200MiB.txt and C:\USERS\GEOFFALEXANDER\DESKTOP\200MIB.TXT
FC: no differences encountered

为什么复制的文件具有新的大小? 两个大小不同的文件如何相同? Windows 10是否错误地报告了新文件的大小?

如果有任何区别,我正在运行Windows 10企业内部版本1809(操作系统内部版本17763.615)。

事实证明文件大小的更改不是由于文件的复制引起的。 而是在将文件签入RTC(Rational Team Concert)时发生了文件大小更改。 RTC签入将现有的LF行定界符转换为CRLF行定界符(Windows行定界符)。 有关详细信息,请参见RTC文件内容类型和行定界符

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM