10 lines
159 B
V
10 lines
159 B
V
module pathlib
|
|
|
|
import crypto.sha256
|
|
|
|
// return sha256 hash of a file
|
|
pub fn (mut path Path) sha256() !string {
|
|
c := path.read()!
|
|
return sha256.hexhash(c)
|
|
}
|