This commit is contained in:
2020-06-29 19:26:50 +00:00
parent 69f17a7eb0
commit 15759bef90
10 changed files with 40 additions and 21 deletions

View File

@@ -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));
}