mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
Clean up file change tracking since I wrote it when I was sleepy
This commit is contained in:
parent
4000a40cad
commit
b2f85cd665
4 changed files with 70 additions and 29 deletions
|
|
@ -18,11 +18,12 @@ pub enum FileItem {
|
|||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum FileChange {
|
||||
Created,
|
||||
Deleted,
|
||||
Modified,
|
||||
Created(FileRoute),
|
||||
Deleted(FileRoute),
|
||||
Updated(FileRoute),
|
||||
Moved(FileRoute, FileRoute),
|
||||
}
|
||||
|
||||
pub struct VfsSession {
|
||||
|
|
@ -53,8 +54,8 @@ impl VfsSession {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn handle_change(&mut self, route: &FileRoute, change: FileChange) {
|
||||
// TODO: Update in-memory files
|
||||
pub fn handle_change(&mut self, change: FileChange) {
|
||||
println!("Got change {:?}", change);
|
||||
}
|
||||
|
||||
fn read(&self, route: &FileRoute) -> Result<FileItem, ()> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue