diff --git a/Models/AzureFileProvider.cs b/Models/AzureFileProvider.cs index 4f6097c..0afb596 100644 --- a/Models/AzureFileProvider.cs +++ b/Models/AzureFileProvider.cs @@ -262,7 +262,7 @@ protected async Task GetDetailsAsync(string path, string[] fileDetails.Name = fileItem.Name; fileDetails.Location = ((namesAvailable ? rootPath + fileItem.FilterPath + fileItem.Name : path.Substring(0, path.Length - 1))).Replace("/", @"\"); fileDetails.Size = byteConversion(sizeValue); - fileDetails.Modified = fileItem.DateModified; + fileDetails.Modified = await DirectoryLastModified(path); detailsResponse.Details = fileDetails; } } @@ -326,8 +326,8 @@ protected async Task CreateFolderAsync(string path, string name, IEnumerable x.Uri.Segments.Last().Replace("/", "").ToLower() == checkName.ToLower()).Select(i => i).ToArray().Length > 0)) - { - this.isFolderAvailable = true; + { + this.isFolderAvailable = true; } else { @@ -739,7 +739,6 @@ private async void CopySubFolder(FileManagerDirectoryContent subfolder, string t { CloudBlobDirectory blobDirectory = container.GetDirectoryReference(targetPath); BlobResultSegment items = await AsyncReadCall(subfolder.Path, "Paste"); - await CreateFolderAsync(targetPath, subfolder.Name); targetPath = targetPath + subfolder.Name + "/"; foreach (IListBlobItem item in items.Results) { @@ -810,7 +809,6 @@ private async void MoveSubFolder(FileManagerDirectoryContent subfolder, string t { CloudBlobDirectory blobDirectory = container.GetDirectoryReference(targetPath); BlobResultSegment items = await AsyncReadCall(subfolder.Path, "Paste"); - await CreateFolderAsync(targetPath, subfolder.Name); targetPath = targetPath + subfolder.Name + "/"; foreach (IListBlobItem item in items.Results) { diff --git a/README.md b/README.md index ed260da..95597f3 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ To do so, open the command prompt and run the below commands one after the other ``` git clone https://github.com/ej2-azure-aspcore-file-provider ej2-azure-aspcore-file-provider + cd ej2-azure-aspcore-file-provider ``` diff --git a/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj b/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj index 1f78163..d0d28fc 100644 --- a/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj +++ b/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj @@ -4,9 +4,9 @@ 14.0 Syncfusion.EJ2.FileManager.AzureFileProvider Syncfusion.EJ2.FileManager.AzureFileProvider - 17.4.0.40 - 17.4.0.40 - 17.4.0.40 + 17.4.0.43 + 17.4.0.43 + 17.4.0.43 Syncfusion file manager Azure file provider for Essential JS 2 Syncfusion Inc. Syncfusion.EJ2.FileManager.AzureFileProvider @@ -26,7 +26,7 @@ - +