Skip to content

Commit ddb3648

Browse files
FIX: copy of empty subfolders did not work
FIX: REST busy flag was inverted
1 parent 8ce947b commit ddb3648

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/ucopycommander.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,10 @@
747747
ja: TJobArray;
748748
i: Integer;
749749
Begin
750+
// Sicherstellen Das das Zielverzeichnis auch existiert, da es auch ein Ordner mit nur leeren Ordnern sein kan muss das hier gemacht werden
751+
If Not ForceDirectoriesUTF8(ADestFolder) Then Begin
752+
exit;
753+
End;
750754
ja := Nil;
751755
If FindFirstutf8(IncludeTrailingPathDelimiter(aSourceFolder) + '*', faAnyFile, SR) = 0 Then Begin
752756
Repeat

src/unit1.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
(* FIX: preserve selection and focus when reloading dir *)
105105
(* ADD: REST Server *)
106106
(* FIX: did not refresh folder if subfolder was deleted *)
107+
(* FIX: copying empty subfolders did not work *)
107108
(* *)
108109
(******************************************************************************)
109110
(* Silk icon set 1.3 used *)

src/urestapi.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
iqc := form1.fWorkThread.PendingJobs;
142142
busy := form1.fWorkThread.Busy Or form1.fWorkThread.HasQuestions;
143143
jn := TJSONNode.Create;
144-
jn.AddObj(TJSONValue.Create('State', specialize ifthen < String > (Busy, '0', '1'), false));
144+
jn.AddObj(TJSONValue.Create('State', specialize ifthen < String > (Busy, '1', '0'), false));
145145
jn.AddObj(TJSONValue.Create('JobQueueCount', inttostr(iqc), false));
146146
jn.AddObj(TJSONValue.Create('LeftDir', form1.fLeftView.aDirectory, true));
147147
jn.AddObj(TJSONValue.Create('RightDir', form1.fRightView.aDirectory, true));

0 commit comments

Comments
 (0)