2020-12-30 20:36:54 +01:00
|
|
|
module main
|
|
|
|
|
|
|
|
import os
|
|
|
|
import v.vcache
|
|
|
|
|
|
|
|
fn main() {
|
2021-07-29 13:25:33 +02:00
|
|
|
_ := map{
|
|
|
|
1: 1
|
|
|
|
}
|
2020-12-30 20:36:54 +01:00
|
|
|
mut cm := vcache.new_cache_manager([])
|
|
|
|
cpath := cm.basepath
|
|
|
|
if os.exists(cpath) && os.is_dir(cpath) {
|
2021-03-24 22:37:10 +01:00
|
|
|
os.rmdir_all(cpath) or {}
|
2020-12-30 20:36:54 +01:00
|
|
|
}
|
|
|
|
println('V cache folder $cpath was wiped.')
|
|
|
|
}
|