Open z-erica opened 2 weeks ago
to be clear, it means filenames like mysupercoolfilename..mp4
, and not things with a leading ..
https://github.com/schollz/croc/blob/01609df9024ab6a81e212a1d662d9628be947851/src/utils/utils.go#L598 should probably be something like StartsWith
instead of Contains
but i don't know if there's more filename based pitfalls to be aware of
https://github.com/schollz/croc/blob/01609df9024ab6a81e212a1d662d9628be947851/src/utils/utils.go#L598 should probably be something like
StartsWith
instead ofContains
but i don't know if there's more filename based pitfalls to be aware of
https://stackoverflow.com/questions/12667327/go-startswithstr-string
if strings.HasPrefix(basename, "..") {
Anytime ".." is next to a path separator should be excluded
receiving side:
croc version v10.0.11