John Benediktsson
25b29e084d
io.directories.search: a better fix for the linux entry ordering issue.
2019-03-21 19:36:05 -07:00
John Benediktsson
1c44494b32
Revert "io.directories.search: Fix the order of the depth/breadth traversals."
...
This reverts commit c3cfc177cd
.
2019-03-21 19:23:13 -07:00
Doug Coleman
c3cfc177cd
io.directories.search: Fix the order of the depth/breadth traversals.
...
This unit test kind of sucks.
2019-03-21 19:41:26 -05:00
John Benediktsson
b942caf3d7
io.directories.search: fix traversal test case cross-platform issues.
...
on Linux and macOS mojave they entries might traverse (a,c,b)
instead of (a,b.c) so we preserve the traversal method order
but sort for cross-platform testing.
2019-03-16 20:29:19 -07:00
Doug Coleman
a33128a4b3
io.directories.search: link-info better than file-info because file-info can crash if the link is bad.
2018-06-13 22:31:39 -05:00
John Benediktsson
59bc3a1ca0
io.directories.search: use fry instead of curry in find-file.
2018-02-14 16:21:50 -08:00
John Benediktsson
495d27a502
io.directories.search: fix linux tests.
...
Linux doesn't return alphabetic ordering like Windows and macOS, so
we just assert the paths are iterated in the correct order by depth.
2017-03-05 15:56:28 -08:00
John Benediktsson
368e1c8e47
io.directories.search: simplify interface.
...
Now we use a ``traversal-method`` variable that controls whether
we do a depth-first or breadth-first search rather than a stack
argument or a fixed default specified in each word.
This also fixes an issue where breadth-first traversal would
iterate across children in reverse order, now it does the normal
ordering which is typically alphabetical.
2017-03-05 09:16:00 -08:00
Alexander Iljin
560caf8e4d
io.directories.search-docs: fix indentation
2016-10-30 14:18:53 -07:00
John Benediktsson
2628dbc5c9
io.directories.search.windows: merging with io.standard-paths.windows.
2016-10-06 14:57:40 -07:00
Björn Lindqvist
ba4bb45d4d
io.directories.*: move of the qualified directory listing words to io.directories
2016-07-30 19:03:22 +02:00
Doug Coleman
49be5b2c52
io.directories.search: Fix unit test using list.
2016-04-05 14:49:27 -07:00
John Benediktsson
2269b07d33
use with-temp-file and with-temp-directory in some tests.
2016-04-04 10:33:03 -07:00
John Benediktsson
498285d7dd
unicode: make this the API for all unicode things.
2016-03-30 23:29:48 -07:00
John Benediktsson
bde8f522f1
fix some tests broken by my io.files.unique change.
2016-03-19 09:50:01 -07:00
John Benediktsson
baae677276
io.files.unique: change to create unique files and directories relative to the current-directory.
2016-03-18 10:57:54 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
John Benediktsson
5eec781b40
use ``if*`` instead of ``dup [ ] [ drop ] if``.
2015-07-20 22:24:30 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824
.
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
Doug Coleman
cf3ccd0abe
io.directories.search: Add some more combinators for finding files.
2015-05-21 22:35:24 -07:00
Doug Coleman
f2c67d6ab4
io.directories.search: Add two tests for find-up-to-directory, one that finds a file and one that doesn't.
2015-05-08 21:02:29 -07:00
Doug Coleman
2aa6ce7e8c
io.directories.search: fix inline recursive combinator compilation. fix
...
reversed logic for containing-directory
2015-05-07 16:49:32 -07:00
Doug Coleman
510f605df9
io.directories.search: Add find-up-to-root combinator and helper words.
...
Example: "c:\\factor64\\.git\\objects" [ ".txt" tail? ] find-up-to-root .
"c:\\factor64\\.git"
2015-05-05 23:26:52 -07:00
Benjamin Pollack
2c3dd8c3c8
Remove executable bit from tons of files that aren't
2014-11-05 20:40:42 -08:00
John Benediktsson
ab969b072c
io.directories.search: some cleanup.
2014-05-20 14:46:01 -07:00
John Benediktsson
3fb1532bd6
io.directories.search: add quot stack effects, simplify find-all-files.
2014-05-20 12:29:02 -07:00
John Benediktsson
7e4f2ec618
io.directories.search: faster directory traversal.
2014-05-20 12:06:11 -07:00
Doug Coleman
7a35d85f30
io.directories.search: Show directory entries instead of throwing them away.
2013-04-13 16:18:54 -07:00
Doug Coleman
84a93dd998
io.directories.search.windows: Windows8 doesn't find ProgramFiles with the
...
existing methods, find it in an os-env.
2013-04-09 12:19:06 -07:00
John Benediktsson
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
b519b52fa3
io.directories: cleanup and some performance improvements with move/copy.
2012-07-16 22:03:49 -07:00
Doug Coleman
94db86a6db
Make "foo.private" require load foo instead.
...
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201 .
2011-11-02 11:50:03 -07:00
Keita Haga
7a9591674c
io.directories.search: fix a couple of examples
2010-12-23 05:15:20 +09:00
Joe Groff
e7968ceffc
mop up compiler errors from macosx load-all
2010-03-09 00:56:07 -08:00
Slava Pestov
95bfc8a240
vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases
2010-02-20 13:30:49 +13:00
Doug Coleman
8c1d202b4c
Rename accumulator to collector, pusher to selector
2010-01-22 15:00:53 -06:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Doug Coleman
e376a0ece2
(normalize-path) -> absolute-path, canonicalize-path -> resolve-symlinks
2009-10-28 17:25:50 -05:00
Doug Coleman
42751cb148
fix io.directories.search on windows
2009-10-15 22:00:46 -05:00
Doug Coleman
0dc734195c
fix enumerating fully qualified paths by calling normalize-path first
2009-10-15 00:12:11 -05:00
Keith Lazuka
405e5d015b
docs: change $subsection to $subsections
2009-10-02 12:15:48 -04:00
U-C4\Administrator
ba1795c854
add a find-by-extensions word
2009-05-10 19:20:04 -05:00
Doug Coleman
5e5042fe5f
fix help-lint, compilation issue in io.directories.search
2009-04-24 19:01:26 -05:00
Doug Coleman
0220609928
handle errors when traversing directories
2009-04-24 16:24:31 -05:00
Doug Coleman
c3c51e2c60
more tests for io.directories.search, fix docs, refactoring
2009-04-24 15:22:12 -05:00
Doug Coleman
33743c1a3d
refactor io.directories.search
2009-04-24 14:49:31 -05:00
Doug Coleman
0759ddcfca
fix io.directories.search -- doens't call link-info twice on every file now
2009-04-24 01:18:29 -05:00