Skip to content

Commit

Permalink
Correct alternative option names for writer
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed May 18, 2024
1 parent fd5ebd4 commit b643014
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/writer.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ proc cookfs::tcl::writer {args} {
set c([string range $opt 1 end]) $val
}
-pagesobject {
set c(-pages) $val
set c(pages) $val
}
-fsindexobject {
set c(-index) $val
set c(index) $val
}
-smallfilebuffer {
set c(-smallfilebuffersize) $val
set c(smallfilebuffersize) $val
}
default {
unset c
Expand Down Expand Up @@ -267,7 +267,6 @@ proc ::cookfs::tcl::writer::write {wrid args} {
}

#vfs::log [list cookfs::writeFiles write $path with $size byte(s)]

# check if this is a small file or writing to memory has been enabled
if {($size <= $c(smallfilesize)) || $c(writetomemory)} {
# add file to "small file buffer" instead of writing to disk
Expand Down

0 comments on commit b643014

Please sign in to comment.