No description
Find a file
2024-08-08 12:44:06 +08:00
.github/workflows v0.2.2 2024-08-08 12:44:06 +08:00
src v0.2.2 2024-08-08 12:44:06 +08:00
tests v0.2.2 2024-08-08 12:44:06 +08:00
.gitignore switch to zippy 2021-03-30 19:15:04 +08:00
.travis.yml o 2020-04-29 19:35:15 +08:00
finder.nimble v0.2.2 2024-08-08 12:44:06 +08:00
README.md v0.2.2 2024-08-08 12:44:06 +08:00

finder Build Status

fs memory zip finder implement in Nim

note: when use MacOS context menu Compress
it will use defalte64 which not compatible with zlib's deflate which not supported by zippy

compile config

switch("d","nimOldCaseObjects")

usage

const r = "switch(\"path\", \"$projectDir/../src\")"

# fs2mem
var x:Finder
x.fType = FinderType.fs2mem
let p = "./tests"
initFinder(x,p)

assert x.get("config.nims") == r

# zip
var y:Finder
y.fType = FinderType.zip
let p2 = "./tests/Archive.zip"
initFinder(y,p2)
assert y.get("config.nims") == r

# zip2mem
var z:Finder
z.fType = FinderType.zip2mem
const archive = staticRead( currentSourcePath.parentDir() / "../tests/Archive.zip")
initFinder(z,archive)
assert z.get("config.nims") == r

#fs
var g:Finder
g.fType = FinderType.fs
initFinder(g, "./tests")
assert g.get("config.nims") == r