Caoimhe
de18485a2f
LibCore: Improve the TempFile wrapper
...
- We were using primitive versions of mkstemp and mkdtemp, they have
been converted to use LibCore::System.
- If an error occurred whilst creating a temporary directory or file, it
was thrown and the program would crash. Now, we use ErrorOr<T> so that
the caller can handle the error accordingly
- The `Type` enumeration has been made private, and `create_temp` has
been "split" (although rewritten) into create_temp_directory and
create_temp_file. The old pattern of TempFile::create_temp(Type::File)
felt a bit awkward, and TempFile::create_temp_file() feels a bit nicer
to use! :^)
Once the Core::Filesystem PR is merged (#17789 ), it would be better for
this helper to be merged in with that. But until then, this is a nice
improvement.
2023-03-19 00:14:03 +00:00
..
2023-01-27 20:38:49 +00:00
2022-12-31 04:24:05 -07:00
2023-01-04 11:49:15 +01:00
2023-03-03 15:23:47 +01:00
2023-03-01 10:47:19 +01:00
2023-03-05 20:23:42 +01:00
2023-02-13 00:50:07 +00:00
2022-12-06 08:54:33 +01:00
2023-03-13 15:16:20 +00:00
2023-02-13 00:50:07 +00:00
2023-01-27 20:38:49 +00:00
2023-01-04 11:49:15 +01:00
2023-01-12 11:25:51 +01:00
2023-03-05 20:23:42 +01:00
2023-02-13 00:50:07 +00:00
2023-03-05 20:23:42 +01:00
2023-03-05 20:23:42 +01:00
2023-03-06 12:53:01 +00:00
2023-03-05 20:23:42 +01:00
2023-03-05 20:23:42 +01:00
2023-03-05 20:23:42 +01:00
2023-01-07 14:51:04 +01:00
2023-01-07 14:51:04 +01:00
2022-12-06 08:54:33 +01:00
2023-03-13 15:16:20 +00:00
2023-03-13 12:12:17 +00:00
2023-03-13 15:16:20 +00:00
2023-03-13 15:16:20 +00:00
2022-07-27 21:45:01 +00:00
2022-12-06 08:54:33 +01:00
2023-01-19 11:29:48 +00:00
2023-01-18 09:37:11 -05:00
2023-01-19 11:29:48 +00:00
2023-01-18 09:37:11 -05:00
2023-01-18 09:37:11 -05:00
2023-03-13 12:12:17 +00:00
2023-02-08 19:49:48 +01:00
2023-02-25 22:31:17 +01:00
2022-12-06 08:54:33 +01:00
2022-12-06 08:54:33 +01:00
2023-01-29 19:16:44 -07:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-02-16 10:56:01 +00:00
2023-02-16 10:56:01 +00:00
2023-03-17 22:20:16 +00:00
2023-03-09 12:59:57 +00:00
2023-02-13 00:50:07 +00:00
2023-03-13 15:16:20 +00:00
2023-03-16 09:58:42 +01:00
2023-03-16 09:58:42 +01:00
2023-02-25 20:51:49 +01:00
2023-02-08 19:15:45 +00:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-03-13 12:12:17 +00:00
2022-12-06 08:54:33 +01:00
2022-12-09 00:05:30 +01:00
2023-01-04 11:49:15 +01:00
2023-02-08 19:49:48 +01:00
2023-02-08 19:49:48 +01:00
2023-01-10 19:32:31 +01:00
2022-12-06 08:54:33 +01:00
2023-01-28 22:41:36 +01:00
2023-03-04 21:34:54 -07:00
2023-03-13 15:16:20 +00:00
2022-12-06 08:54:33 +01:00
2023-03-13 15:16:20 +00:00
2023-03-13 15:16:20 +00:00
2023-02-25 20:51:49 +01:00
2023-01-11 20:54:49 +00:00
2023-03-19 00:14:03 +00:00
2023-03-19 00:14:03 +00:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-03-19 00:14:03 +00:00
2023-03-19 00:14:03 +00:00
2023-01-12 11:25:51 +01:00
2023-01-12 11:25:51 +01:00
2022-12-20 10:45:20 +01:00
2022-12-20 10:45:20 +01:00
2022-09-18 18:30:05 -07:00
2023-03-03 15:23:47 +01:00
2023-03-03 15:23:47 +01:00