Skip to content

Commit 94d088d

Browse files
committed
fixed bug in directory move method
1 parent c2e353a commit 94d088d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CenterDevice.Rest/CenterDevice.Rest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net5.0;net48</TargetFrameworks>
55
<AssemblyName>CompuMaster.CenterDevice.Rest</AssemblyName>
6-
<Version>2022.5.23.101</Version>
6+
<Version>2022.5.23.102</Version>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
88
<PackageProjectUrl>https://github.com/CompuMasterGmbH/CompuMaster.CenterDevice.IO</PackageProjectUrl>
99
<Copyright>Copyright © 2017-2022 CenterDevice GmbH, Bonn/Germany and CompuMaster GmbH, Emmelshausen/Germany</Copyright>

CenterDevice.Rest/IO/DirectoryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ public void Move(DirectoryInfo targetDirectory)
11141114
else if (this.restFolder != null)
11151115
if (targetDirectory.restFolder != null)
11161116
this.ioClient.ApiClient.Folder.MoveFolder(this.ioClient.CurrentAuthenticationContextUserID, this.restFolder.Id, targetDirectory.FolderID, targetDirectory.AssociatedCollection.restCollection.Id);
1117-
else if (this.restCollection != null)
1117+
else if (targetDirectory.restCollection != null)
11181118
this.ioClient.ApiClient.Folder.MoveFolder(this.ioClient.CurrentAuthenticationContextUserID, this.restFolder.Id, null, targetDirectory.restCollection.Id);
11191119
else
11201120
throw new NotImplementedException("Delete action for this folder directory type hasn't been implemented, yet");

0 commit comments

Comments
 (0)