]> gitweb.factorcode.org Git - factor.git/commit
io.directories: improve file moving words
authorBenjamin Pollack <benjamin@bitquabit.com>
Thu, 5 Jan 2017 23:26:55 +0000 (18:26 -0500)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 6 Jan 2017 23:43:34 +0000 (15:43 -0800)
commit7184771c315004a4e0d6a733c5a3b495a7d4056b
treef924f186f6d745f26abc67080e9f6fe2a012e241
parentdac41e1bf70cc07707ba530c224c84d1eacb18a5
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
basis/io/directories/directories-docs.factor
basis/io/directories/directories.factor
basis/io/directories/unix/unix.factor
basis/io/directories/windows/windows.factor
basis/windows/kernel32/kernel32.factor