This commit is contained in:
@@ -356,6 +356,7 @@ namespace AyaNova.Util
|
||||
EnsurePath(permanentPath);
|
||||
|
||||
var permanentFilePath = Path.Combine(permanentPath, hash);
|
||||
var FileSize = new FileInfo(tempFilePath).Length;
|
||||
|
||||
//See if the file was already uploaded, if so then ignore it for now
|
||||
if (File.Exists(permanentFilePath))
|
||||
@@ -380,7 +381,8 @@ namespace AyaNova.Util
|
||||
ContentType = contentType,
|
||||
AttachToObjectId = attachToObject.ObjectId,
|
||||
AttachToObjectType = attachToObject.ObjectType,
|
||||
LastModified = lastModified
|
||||
LastModified = lastModified,
|
||||
Size = FileSize
|
||||
|
||||
};
|
||||
|
||||
@@ -631,7 +633,7 @@ namespace AyaNova.Util
|
||||
/// Utility / backup folder file size info
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal static FolderSizeInfo GetUtilityFolderSizeInfo()
|
||||
internal static FolderSizeInfo GetBackupFolderSizeInfo()
|
||||
{
|
||||
return GetDirectorySize(new DirectoryInfo(BackupFilesFolder));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user