Revision 7c4a9354 trunk/Pithos.Core/Agents/BlockExtensions.cs
b/trunk/Pithos.Core/Agents/BlockExtensions.cs | ||
---|---|---|
77 | 77 |
//The hash for directories is an empty string |
78 | 78 |
if (info is DirectoryInfo) |
79 | 79 |
return String.Empty; |
80 |
|
|
80 |
//The hash for non-existent files is an empty string |
|
81 |
if (!info.Exists) |
|
82 |
return String.Empty; |
|
83 |
|
|
81 | 84 |
var fileInfo = (FileInfo)info; |
82 | 85 |
if (fileInfo.Length <= blockSize) |
83 | 86 |
return Signature.CalculateMD5(info.FullName); |
Also available in: Unified diff