John Benediktsson
115b7b62df
basis: removing unnecessary method stack effects.
2020-09-09 15:00:54 -07:00
John Benediktsson
c56dd706ce
io.directories: use factor for touch-file.
2020-04-13 10:28:16 -07:00
Doug Coleman
1870c11c0b
io.directories: The only truly cross-platform binary is Factor.
2020-04-12 13:25:24 -05:00
Doug Coleman
2b85b27c17
io.directories: Maybe echo is a good cross-platform test?
...
4a6bd57977 (commitcomment-38433000)
2020-04-11 12:48:08 -05:00
Doug Coleman
723072726e
Revert "io.directories: Don't use ``touch`` because it's not default on Windows."
...
This reverts commit 4a6bd57977
.
We don't test anything without try-process.
2020-04-11 12:39:22 -05:00
Doug Coleman
4a6bd57977
io.directories: Don't use ``touch`` because it's not default on Windows.
2020-04-10 21:44:38 -07:00
John Benediktsson
fe929be0f4
io.directories.windows: don't need to wrap.
2020-02-11 13:25:44 -08:00
John Benediktsson
ca1612cc57
io: fix for win32-error not throwing on zero.
2020-01-06 14:20:15 -08:00
Alexander Iljin
135390968b
Delete throw-win32-error, replace with win32-error calls
2020-01-06 13:18:33 -08:00
Alexander Iljin
294be2cca3
Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls
...
On error find-first-file will now throw a windows-error instance instead of
a string.
2020-01-06 13:18:33 -08:00
Doug Coleman
75e98b4bc3
Revert "Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls"
...
This reverts commit 1e61dbfd2a
.
2020-01-03 13:04:29 -06:00
Doug Coleman
d9f1093cf8
Revert "Delete throw-win32-error, replace with win32-error calls"
...
This reverts commit e1be081ec9
.
2020-01-03 13:04:01 -06:00
Alexander Iljin
e1be081ec9
Delete throw-win32-error, replace with win32-error calls
2019-11-25 07:06:59 -08:00
Alexander Iljin
1e61dbfd2a
Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls
...
On error find-first-file will now throw a windows-error instance instead of
a string.
2019-11-25 07:06:59 -08:00
Alexander Iljin
0007789795
continuations[-docs]: add the finally word
2019-04-22 21:57:51 -07:00
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
4e9d383fe5
docs: Fix help-lint-all mistakes.
2018-07-07 01:13:19 -05: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
607de53ad3
more test IN: cleanup.
2018-02-25 15:44:16 -08:00
John Benediktsson
ca03896d74
more test IN: cleanup.
2018-02-15 09:20:01 -08:00
John Benediktsson
59bc3a1ca0
io.directories.search: use fry instead of curry in find-file.
2018-02-14 16:21:50 -08:00
Alexander Iljin
74de0033b2
io.directories-docs: remove an extra character
2018-01-16 13:40:14 -08:00
Doug Coleman
b92a3e109d
io: Add with-ensure-directory and ?file-info.
2017-08-03 18:42:32 -05:00
Alexander Iljin
acf14a7bd1
io.directories.windows: add size slot to windows-directory-entry tuple
2017-06-05 16:47:01 -07:00
Alexander Iljin
2ffa446f5b
*-docs: replace double spaces with single spaces
...
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07: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
Benjamin Pollack
7184771c31
io.directories: improve file moving words
...
move-file previously had inconsistent behavior on Windows and unixes.
This unifies the behavior to the common case (just get 'er done), while
also introducing an obviously named word, move-file-atomically, to
handle the case where you need an atomic file primitive.
Fixes #1772
2017-01-06 15:43:34 -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
Alexander Iljin
ef29e0947f
io.directories.windows: remove synchronous copy-file implementation
2016-06-29 14:17:57 -07:00
Björn Lindqvist
6a76bf9084
io.directories.unix: normalize-path doesn't need to be called
...
It is already called by the words copy-file delegates to.
2016-06-15 01:25:53 +02:00
Björn Lindqvist
ea4333e490
io.directories: new utility word make-parent-directories, for making sure directories exists
2016-06-15 00:33:44 +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
d2daa05790
io: fix some temp-files in the tests to use unique-files.
2016-03-31 00:23:13 -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
2e85dd2eb3
io.directories: simplify tests by using with-temp-directory.
2016-03-17 17:11:59 -07:00
Björn Lindqvist
e35087fb22
io.files.windows: fix incorrect parsing of file attribute bitfield in win32-file-attributes
2015-10-11 04:11:30 +02:00
Björn Lindqvist
dbcfc178ff
io.directories.unix,environment.unix: better to use
...
native-string-encoding over hardcoding utf8
2015-10-01 15:52:51 +02: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
2a3427bdff
io.files.info: use directory?, symbolic-link?, and regular-file?.
2015-08-05 18:33:35 -07:00
Doug Coleman
1fcf96cada
factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon.
2015-07-25 22:59:56 -07:00