Source

frawor / test / os.ok

OS: posix (unix)
Path separator: /
Line separator: \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
: mkdir
a:     0
a/b:   0
a/b/c: 0
: makedirs
a:     1
a/b:   1
a/b/c: 1
: rmdir
a:     1
a/b:   1
a/b/c: 0
: removedirs
a:     0
a/b:   0
a:     rwxr-x---
a/b:   rwxr-x---
a/b/c: rwxr-x---
: 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.