Doug Coleman
cf3ccd0abe
io.directories.search: Add some more combinators for finding files.
2015-05-21 22:35:24 -07:00
John Benediktsson
b366a06c41
use reject instead of [ ... not ] filter.
2015-05-12 18:50:34 -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
Doug Coleman
d23ab51ce8
io.files: Move with-cd to the tests file so that nobody uses it. My bad. Basically nobody should ever use cd or cwd for anything. Fixes #1214 .
2014-11-23 01:39:36 -08:00
Doug Coleman
aff0150a8c
io.files: add with-cd. Related to #1214 .
2014-11-22 22:21:35 -08:00
John Benediktsson
7badef25ce
libc: reduce code duplication.
2014-11-21 10:19:12 -08:00
John Benediktsson
39093727b1
libc: rename (io-error) to throw-errno.
2014-11-21 09:29:45 -08:00
Doug Coleman
0fe5b2d90f
io.directories: Add unit test for #890 .
2014-11-18 14:11:13 -08:00
Benjamin Pollack
2c3dd8c3c8
Remove executable bit from tons of files that aren't
2014-11-05 20:40:42 -08:00
Doug Coleman
be232dac9b
io.backend: Remove duplicate definition of file-mode. Add mkdir-mode using non-magic symbols. Cleanup imports.
2014-10-24 17:16:40 -07: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
John Benediktsson
4ca5b2ccb3
Revert "unix.ffi: be more explicit about dirent64."
...
This reverts commit edf456149330d44995b1c8bdf61a1c5d2617ed9c.
2014-04-29 14:02:30 -07:00
John Benediktsson
5dd26a9066
unix.ffi: be more explicit about dirent64.
2014-04-29 13:54:27 -07:00
John Benediktsson
09dec78603
io.directories.unix.linux: fix using.
2014-04-29 13:38:27 -07:00
John Benediktsson
26ff963758
io.directories: faster directory-entries by caching dirent structs.
2014-04-29 13:22:56 -07:00
Björn Lindqvist
eaca04de3b
libc: several vocabs now need to depend on libc
2014-04-02 12:13:00 -05:00
Doug Coleman
e407981e12
io.directories: Add with-resource-directory word and use it.
2013-09-24 13:13:39 -07:00
Doug Coleman
ec1ecbe549
io.directories.unix: If you mount a .iso, all the file types are +unknown+ according to directory-files.
...
Fall back to file-info on +unknown+ file types and use with-directory in with-unix-directory so the paths are correct for file-info.
Fixes #911 .
2013-07-11 09:46:26 -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
5a99bbaf1d
io.directories.unix: style fix to line up code.
2013-03-25 19:47:56 -07:00
John Benediktsson
85d0c607b0
io.directories: fix docs for (directory-entries).
2013-03-06 17:35:53 -08:00
John Benediktsson
83712ad87e
io.directories: defining "?delete-file".
2012-10-25 10:07:15 -07:00
John Benediktsson
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
2f7e8c0352
io.directories: fix mistaken refactor.
2012-07-17 08:39:31 -07:00
John Benediktsson
c507293d41
io.directories.hierarchy: faster directory-tree-files.
2012-07-17 08:25:53 -07:00
John Benediktsson
b519b52fa3
io.directories: cleanup and some performance improvements with move/copy.
2012-07-16 22:03:49 -07:00
John Benediktsson
2f325e4fee
using if-zero in even more places.
2012-07-16 19:38:49 -07:00
Doug Coleman
eccf5a82ae
io.files.info.windows: Fix file-systems word in two ways. First, don't
...
allocate 32k on the local alloc stack (which causes a 'double fault.')
Second, if the volume doesnt look up to a real path, don't make a dummy
object for that. volume
Use alien>native-string and native-string>alien wherever possible instead of
utf16n for Windows.
2012-06-21 08:32:53 -07:00
Joe Groff
25ec33dc10
io.directories.unix: remove redundant using
2011-11-28 20:36:46 -08:00
Joe Groff
4c0d73da3c
io.files.info: fix circularity
...
Remove the undocumented and redundant "copy-file-and-info" word, since "copy-file" does the same thing, and the circular dependency on "io.directories" was causing some deploys to fail
2011-11-28 19:37:01 -08:00
Joe Groff
7754ab2c06
io.directories.unix: make copy-file copy perms
...
Like the docs claim it does
2011-11-27 12:37:54 -08:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Doug Coleman
62f652a5a1
io.directories: fix delete-file on windows, add unit test
2011-11-12 18:28:07 -08: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
Doug Coleman
b58688f87d
Add throw-win32-error, use it in (delete-file)
2011-10-19 02:51:36 -07:00
Doug Coleman
5608178389
When deleting a file, if it fails with "Access is denied" then set the file
...
attributes to normal and try again. Some files in the .git directory are set
to read-only, preventing the build machines from deleting old builds.
2011-10-19 02:28:45 -07:00
Doug Coleman
5c694767cd
Report which file doesn't get deleted on Windows.
2011-10-18 00:59:57 -07:00
Doug Coleman
bf2a96e9e0
Remove Windows CE from core/ basis/ and build-support/
...
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84 .
2011-09-18 23:19:06 -05:00
Slava Pestov
a8633d28c7
unix.*, io.directories.unix: remove unnecessary dependency on io.backend.unix
2011-09-01 22:31:45 -07:00
Erik Charlebois
662bc3b07b
Fix bugs in unix ffi usage
2011-05-23 23:36:14 -04:00
Slava Pestov
75560699ea
Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object>
2010-12-25 16:55:36 -08:00
Keita Haga
7a9591674c
io.directories.search: fix a couple of examples
2010-12-23 05:15:20 +09:00
Keita Haga
ae7b44e5eb
io.directories: fix typo in example
2010-11-14 17:18:56 +09:00
Doug Coleman
4ca9bd0bba
Remove usages of <void*> and *void*
2010-10-25 13:22:50 -05:00
Slava Pestov
3bd23f2414
io.directories.hierarchy: add some tests
2010-09-20 21:36:22 -07:00