Source

frawor / test / gwine / os.ok

Full commit
OS: nt (win32)
Path separator: \
Line separator: \x0d\x0a
Curdir: %TMPDIR%\test
Curdir: %TMPDIR%\test\directory
Curdir: %TMPDIR%\test
Curdir: %TMPDIR%\test\directory
0=2: 1
1=3: 1
Basename of a/b: b
Dirname of a/b: a
a/b/c components: ., a, b, c
a/b/c relative to a: b\c
a/b/c relative to .: a\b\c
a/b/c relative to d: ..\a\b\c
../../test/directory relative to ../../test: directory
. relative to .: .
: mkdir
a:     0
a/b:   0
a/b/c: 0
: makedirs
a:     1
a/b:   1
a/b/c: 1
a/b/c relative to a: b\c
a/b/c relative to .: a\b\c
a/b/c relative to d: ..\a\b\c
: rmdir
a:     1
a/b:   1
a/b/c: 0
: removedirs
a:     0
a/b:   0
a:     rwxrwxrwx
a/b:   rwxrwxrwx
a/b/c: rwxrwxrwx
: walk
['.', ['a'], []]
['.\a', ['b', 'b2'], ['1']]
['.\a\b', ['c'], []]
['.\a\b2', ['c2'], []]
['.\a\b\c', [], ['3']]
['.\a\b2\c2', ['d2'], []]
['.\a\b2\c2\d2', [], []]
: path.walk
Walkning through %TMPDIR%\test\directory
Walkning through %TMPDIR%\test\directory\a
Walkning through %TMPDIR%\test\directory\a\b
Walkning through %TMPDIR%\test\directory\a\b\c
Walkning through %TMPDIR%\test\directory\a\b2
['%TMPDIR%\test\directory', ['a']]
['%TMPDIR%\test\directory\a', ['1', 'b', 'b2']]
['%TMPDIR%\test\directory\a\b', ['c']]
['%TMPDIR%\test\directory\a\b\c', ['3']]
['%TMPDIR%\test\directory\a\b2', ['c2']]
a: 1 1
a/1: 0 1
: removetree
['.', [], []]
a: 0 0
a/1: 0 0
{ Strange filenames: %
%: 0
: mkdir
%: 0
: rmdir
%: 0
}