Commit Graph

10 Commits (3eb6e55ae4b51ec9de976f22a833f2f1f7605f5c)

Author SHA1 Message Date
Alexander Iljin a06e9cc3b2 io.files.trash.windows: convert input path to absolute in send-to-trash
The input path must be absolute, but normalize-path can't be used, because
that returns UNC path, and SHFileOperation fails on any path prefixed with
"\\?", see https://docs.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-shfileopstructa
Use absolute-path instead. The mixture of slashes and backslashes in the
path is tolerated, at least on Windows 10.

Add a simple unit-test.
2020-04-17 02:55:24 +00:00
Alexander Iljin 595cf81eb8 io.files.trash.windows: fix SHFILEOPSTRUCTW struct
Fix the incorrect field alignment. SHFileOperationW crashed with a memory
protection error while trying to dereference only part of the string
pointer.
2020-04-17 02:55:24 +00:00
John Benediktsson ec0326fee9 io.files.trash.windows: using flags{ }. 2020-02-12 14:33:30 -08:00
John Benediktsson cad867a3e9 io.files.trash.windows: cleanup using. 2019-08-05 13:07:25 -07:00
Doug Coleman 5f8426cfbe factor: rename files that are not loadable on mac, too 2015-07-19 16:55:36 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -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 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Slava Pestov 01eeabbcbd Merge classes.struct.packed into classes.struct and remove duplication 2011-08-25 21:02:25 -07:00
John Benediktsson 94812c1f49 Moving io.trash to io.files.trash. 2011-08-19 14:31:19 -07:00