aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/cmd/tools/vwipe-cache.v
blob: 988b7c262a429fd80704413306a2777fa11b65ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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.')
}