1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/cmd/tools/vwipe-cache.v

14 lines
235 B
V
Raw Normal View History

module main
import os
import v.vcache
fn main() {
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.')
}