mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +03:00
edd8d54950
While at it, remove the docs as they are referring to the original source code. Tests should help to understand how it is supposed to work. Note that the copy is verbatim and modifications will happen in a separate commit, along with the necessary license declarations.
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: ["*"] }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|