mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 14:31:30 +03:00
21 lines
635 B
Plaintext
21 lines
635 B
Plaintext
|
// https://github.com/spacedriveapp/spacedrive/blob/90a350946914be7f91ba692887ca03db659d530a/core/src/location/manager/watcher/macos.rs
|
||
|
//
|
||
|
// This is a MacOS specific event that happens when a folder is created trough Finder.
|
||
|
// It creates a folder but 2 events are triggered in FSEvents.
|
||
|
{
|
||
|
state: {}
|
||
|
events: [
|
||
|
{ kind: "create-folder", paths: ["/watch/dir"] }
|
||
|
{ kind: "create-folder", paths: ["/watch/dir"] }
|
||
|
]
|
||
|
expected: {
|
||
|
queues: {
|
||
|
/watch/dir: {
|
||
|
events: [
|
||
|
{ kind: "create-folder", paths: ["*"] }
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|