On 9/16/23 08:56, Mark Levedahl wrote:
So, there is hope c:\foo will split into c: foo, or c:\ foo, but testing on Windows is needed. Really need Dscho or someone else from g4w to help out here.
I did install git for windows into a bare VM, running tclsh.exe on that
puts [file split {c:\foo}]
c:/ foo
puts [llength [file split {c:\foo}]]
2
puts [file split {hooks\foo}]
hooks foo
puts [llength [file split {hooks\foo}]]
2
puts [file split {foo}]
foo
puts [llength [file split {foo}]]
1
So, file split seems to work as needed on Windows.