I am using copyItemAtPath:toPath:error:
method for copy operation with fileManager:shouldCopyItemAtPath:toPath:
and fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:
delegate methods of NSFilemanager
. I am not printing any logs from delegate method.
But on console application(All Messages) I am getting so many logs:
reading from FilePath: Is a directory
open on FilePath: No such file or directory
open on FilePath:File exists
Cannot make directory FilePath: File exists
Logs are coming because of fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:
delegate method.
EDIT:
Sample of my application:
2534 -[NSFileManager copyItemAtPath:toPath:error:]
2534 -[__NSOperationInternal start]
2533 -[NSDirectoryTraversalOperation main]
1548 -[NSFilesystemItemCopyOperation _handleFTSEntry:]
817 setattrlist$UNIX2003
722 copyfile
258 lstatx_np$INODE64
258 statx1
255 __lstat64_extended
2 filesec_set_property
2 uuid_copy
1 malloc
1 malloc_zone_malloc
1 szone_malloc_should_clear
1 tiny_malloc_from_free_list
...
7 copyfile_stat
3 syslog
3 vsyslog
copyItemAtPath:toPath:error:
is printing logs using syslog
. How to redirect syslog output?
Can anyone please help me out? Sample Application for Copy
I got reply from apple support:
The issue behaves as intended.