v/cmd/tools/vwipe-cache.v

17 lines
256 B
V
Raw Normal View History

module main
import os
import v.vcache
fn main() {
2021-07-29 13:25:33 +02:00
_ := map{
1: 1
}
mut cm := vcache.new_cache_manager([])
cpath := cm.basepath
if os.exists(cpath) && os.is_dir(cpath) {
os.rmdir_all(cpath) or {}
}
println('V cache folder $cpath was wiped.')
}