fix circular printing
This commit is contained in:
@@ -8,7 +8,7 @@ pub mut:
|
|||||||
metadata Metadata // Metadata from models_common.v
|
metadata Metadata // Metadata from models_common.v
|
||||||
data string // File content stored in DB
|
data string // File content stored in DB
|
||||||
parent_id u32 // ID of parent directory
|
parent_id u32 // ID of parent directory
|
||||||
myvfs &OurDBFS @[skip]
|
myvfs &OurDBFS @[str: skip]
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut f File) save() ! {
|
pub fn (mut f File) save() ! {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ pub mut:
|
|||||||
metadata Metadata // Metadata from models_common.v
|
metadata Metadata // Metadata from models_common.v
|
||||||
target string // Path that this symlink points to
|
target string // Path that this symlink points to
|
||||||
parent_id u32 // ID of parent directory
|
parent_id u32 // ID of parent directory
|
||||||
myvfs &OurDBFS @[skip]
|
myvfs &OurDBFS @[str: skip]
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut sl Symlink) save() ! {
|
pub fn (mut sl Symlink) save() ! {
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ pub mut:
|
|||||||
block_size u32 // Size of data blocks in bytes
|
block_size u32 // Size of data blocks in bytes
|
||||||
data_dir string // Directory to store OurDBFS data
|
data_dir string // Directory to store OurDBFS data
|
||||||
metadata_dir string // Directory where we store the metadata
|
metadata_dir string // Directory where we store the metadata
|
||||||
db_data &ourdb.OurDB // Database instance for persistent storage
|
db_data &ourdb.OurDB @[str: skip]// Database instance for persistent storage
|
||||||
db_meta &ourdb.OurDB // Database instance for metadata storage
|
db_meta &ourdb.OurDB @[str: skip]// Database instance for metadata storage
|
||||||
last_inserted_id u32
|
last_inserted_id u32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ fn test_logic() ! {
|
|||||||
entries := high_level_vfs.dir_list('/')!
|
entries := high_level_vfs.dir_list('/')!
|
||||||
assert entries.len == 1 // Data directory
|
assert entries.len == 1 // Data directory
|
||||||
|
|
||||||
println('entries: ${entries}')
|
panic('entries: ${entries[0]}')
|
||||||
|
|
||||||
// // Check if dir is existing
|
// // Check if dir is existing
|
||||||
// assert high_level_vfs.exists('/') == true
|
// assert high_level_vfs.exists('/') == true
|
||||||
|
|||||||
Reference in New Issue
Block a user