Am 09.07.2019 um 10:11 schrieb mixtly <cica...@gmail.com>:
Did anyone test if noteFileSystemChanged works in macOS Catalina? For me, it doesn't refresh the Finder window content.I use NSWorkspace.noteFileSystemChanged to update Finder window when underlying model is updated (ie new file appearance or rename).
--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osxfuse-group/7be596ab-c6cb-4eaf-a894-dacf9c2ab500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Have you tried using the notification API of FUSE instead? For low level file systems you can use
fuse_lowlevel_notify_inval_inode()fuse_lowlevel_notify_inval_entry()fuse_lowlevel_notify_delete()For high level file systems usefuse_invalidate_path()For file systems using the Objective-C framework use[GMUserFileSystem invalidateItemAtPath:error:]
Am 09.07.2019 um 10:11 schrieb mixtly <cica...@gmail.com>:
Did anyone test if noteFileSystemChanged works in macOS Catalina? For me, it doesn't refresh the Finder window content.I use NSWorkspace.noteFileSystemChanged to update Finder window when underlying model is updated (ie new file appearance or rename).--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfus...@googlegroups.com.
id attribs = @{
NSFileModificationDate: NSDate.date
};
NSError* error;
[SREG.fileManager setAttributes:attribs ofItemAtPath:path error:&error];
This results in setAttributes:ofItemAtPath: fuse callback where the new modificationDate is set on the relevant node. This also results in proper FS Events so new folder appears in Finder or its content gets refreshed.
Have you tried using the notification API of FUSE instead? For low level file systems you can use
fuse_lowlevel_notify_inval_inode()fuse_lowlevel_notify_inval_entry()fuse_lowlevel_notify_delete()For high level file systems usefuse_invalidate_path()For file systems using the Objective-C framework use[GMUserFileSystem invalidateItemAtPath:error:]
Am 09.07.2019 um 10:11 schrieb mixtly <cica...@gmail.com>:
Did anyone test if noteFileSystemChanged works in macOS Catalina? For me, it doesn't refresh the Finder window content.I use NSWorkspace.noteFileSystemChanged to update Finder window when underlying model is updated (ie new file appearance or rename).--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfus...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osxfuse-group/ae302c5e-9cb2-4882-9147-5fd5caeb3ea5%40googlegroups.com.