Skip to content

Commit

Permalink
Merge pull request SyncfusionExamples#7 from Thirukumanaran/master
Browse files Browse the repository at this point in the history
Azure date modified issues are fixed
  • Loading branch information
gsumankumar authored Feb 5, 2020
2 parents 964f683 + 83598b8 commit c7d002f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 3 additions & 5 deletions Models/AzureFileProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ protected async Task<FileManagerResponse> 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;
}
}
Expand Down Expand Up @@ -326,8 +326,8 @@ protected async Task CreateFolderAsync(string path, string name, IEnumerable<obj
BlobResultSegment items = await AsyncReadCall(path, "Read");
string checkName = name.Contains(" ") ? name.Replace(" ", "%20") : name;
if (await IsFolderExists(path + name) || (items.Results.Where(x => x.Uri.Segments.Last().Replace("/", "").ToLower() == checkName.ToLower()).Select(i => i).ToArray().Length > 0))
{
this.isFolderAvailable = true;
{
this.isFolderAvailable = true;
}
else
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<RootNamespace>Syncfusion.EJ2.FileManager.AzureFileProvider</RootNamespace>
<AssemblyName>Syncfusion.EJ2.FileManager.AzureFileProvider</AssemblyName>
<AssemblyVersion>17.4.0.40</AssemblyVersion>
<FileVersion>17.4.0.40</FileVersion>
<Version>17.4.0.40</Version>
<AssemblyVersion>17.4.0.43</AssemblyVersion>
<FileVersion>17.4.0.43</FileVersion>
<Version>17.4.0.43</Version>
<Product>Syncfusion file manager Azure file provider for Essential JS 2</Product>
<Company>Syncfusion Inc.</Company>
<PackageId>Syncfusion.EJ2.FileManager.AzureFileProvider</PackageId>
Expand All @@ -26,7 +26,7 @@
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="17.4.0.40"/>
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="*" />
</ItemGroup>

</Project>

0 comments on commit c7d002f

Please sign in to comment.