2020-12-30 20:36:54 +01:00
|
|
|
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) {
|
2021-01-26 15:43:10 +01:00
|
|
|
os.rmdir_all(cpath) or { }
|
2020-12-30 20:36:54 +01:00
|
|
|
}
|
|
|
|
println('V cache folder $cpath was wiped.')
|
|
|
|
}
|