mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 11:23:33 +00:00
cleanup (#2551)
This commit is contained in:
parent
a88a9db5f0
commit
b2aab513d2
|
@ -1,40 +0,0 @@
|
|||
This extension must first register an indexer context to prevent the indexer from scanning the photo library
|
||||
|
||||
```rust
|
||||
struct IndexerContext {
|
||||
key: String,
|
||||
is_dir: bool,
|
||||
extension: Option<String>,
|
||||
must_contain: Vec<String>,
|
||||
always_ignored: Option<String>
|
||||
scan: bool,
|
||||
}
|
||||
```
|
||||
|
||||
```rust
|
||||
core.register_context(IndexerContext {
|
||||
key: "apple-photo-library",
|
||||
is_dir: false,
|
||||
extension: ".photoslibrary",
|
||||
must_contain: vec!["database", "originals"],
|
||||
always_ignored: None,
|
||||
scan: false, // apple-photos extension takes care of scan
|
||||
});
|
||||
|
||||
core.register_context(IndexerContext {
|
||||
key: "github-repository",
|
||||
is_dir: true,
|
||||
extension: None,
|
||||
must_contain: vec![".git"],
|
||||
always_ignored: Some("node_modules", "target")
|
||||
scan: true,
|
||||
});
|
||||
```
|
||||
|
||||
For Apple Photos we need:
|
||||
|
||||
- Hidden/Favorite items
|
||||
- Live photo support
|
||||
- Original creation date
|
||||
- Edited photos
|
||||
- Albums
|
|
@ -1 +0,0 @@
|
|||
|
Loading…
Reference in a new issue