File tree 1 file changed +11
-6
lines changed 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -253,12 +253,17 @@ package body Inotify is
253
253
if Object.Moves.Length = Object.Moves.Capacity then
254
254
Object.Moves.Delete_First;
255
255
end if ;
256
- Object.Moves.Append ((Event.Cookie,
257
- (From => SU.To_Unbounded_String (Directory & " /" & Name),
258
- To => <>)));
259
- -- If inode is moved to outside watched directory,
260
- -- then there will never be a Moved_To or Moved_Self
261
- -- if instance is not recursive
256
+ declare
257
+ MP : Cookie_Move_Pair :=
258
+ (Event.Cookie,
259
+ (From => SU.To_Unbounded_String (Directory & " /" & Name),
260
+ To => <>));
261
+ begin
262
+ Object.Moves.Append (MP);
263
+ -- If inode is moved to outside watched directory,
264
+ -- then there will never be a Moved_To or Moved_Self
265
+ -- if instance is not recursive
266
+ end ;
262
267
when Moved_To =>
263
268
declare
264
269
Cursor : Move_Vectors.Cursor := Find_Move (Event.Cookie);
You can’t perform that action at this time.
0 commit comments