Fix #9126: use splitPath instead of substr
This commit is contained in:
parent
99a874cc8a
commit
aa8249d177
2 changed files with 16 additions and 2 deletions
|
|
@ -43,6 +43,8 @@ true
|
|||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
|
||||
'''
|
||||
"""
|
||||
|
|
@ -132,6 +134,18 @@ echo fileExists("../dest/a/b/file.txt")
|
|||
echo fileExists("../dest/a/b/c/fileC.txt")
|
||||
removeDir("../dest")
|
||||
|
||||
# test copyDir:
|
||||
# if separator at the end of a path
|
||||
createDir("a/b")
|
||||
open("a/file.txt", fmWrite).close
|
||||
|
||||
copyDir("a/", "../dest/a/")
|
||||
removeDir("a")
|
||||
|
||||
echo dirExists("../dest/a/b")
|
||||
echo fileExists("../dest/a/file.txt")
|
||||
removeDir("../dest")
|
||||
|
||||
# Test get/set modification times
|
||||
# Should support at least microsecond resolution
|
||||
import times
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue