Commit Graph

22 Commits

Author SHA1 Message Date
Lars Mueller
a5c49754d9 text.split[_unlimited]: Use pattern by default 2022-09-28 20:50:25 +02:00
Lars Mueller
318e737a08 file: Use io.lines 2022-07-17 21:33:54 +02:00
NobWow
9f65d5df9a Close the file after reading 2022-07-17 21:27:38 +02:00
Lars Mueller
93c1338135 Add file.read_binary for consistency 2022-07-10 14:31:45 +02:00
Lars Mueller
170b0393e1 file: return errors for use in assertions 2022-01-08 13:32:12 +01:00
Lars Mueller
9bfefb9283 write_binary: default to safe file write on MT 2022-01-08 13:30:54 +01:00
Lars Mueller
ba4ce3254b Fix file.get_name 2021-12-30 18:49:35 +01:00
Lars Mueller
a243d2ae48 Add modlib.file.write_binary 2021-12-28 00:04:58 +01:00
Lars Mueller
ff9d1c9d95 Add file.split_path 2021-11-06 18:32:58 +01:00
Lars Mueller
c02a83aee8 Move dir_delim to file module, add file.concat_path 2021-11-06 18:32:35 +01:00
Lars Mueller
277c076651 Rename file.get_extension to file.split_extension 2021-11-06 14:28:27 +01:00
Lars Mueller
dc80e8b45c Add file.get_name 2021-11-04 17:03:41 +01:00
Lars Mueller
9484b78eef Rename split_extension to get_extension 2021-09-01 17:09:14 +02:00
Lars Mueller
4d9b7ca0aa Add file.split_extension 2021-09-01 17:07:26 +02:00
Lars Mueller
4175974def Redo environments 2021-06-17 19:45:08 +02:00
Lars Mueller
0315a77696 Localize globals per file for all modules 2021-06-11 20:47:29 +02:00
Lars Mueller
6df2bcf1f1 Use minetest.safe_file_write 2021-03-30 22:26:30 +02:00
Lars Mueller
adb4b4fdaf Indentation: Use only tabs 2021-03-27 20:10:49 +01:00
Lars Mueller
44cca2569c Make modlib independent of Minetest 2021-03-04 12:18:26 +01:00
Lars Mueller
f4ee51e543 Add file.ensure_content 2020-12-22 11:36:58 +01:00
Lars Mueller
2e4f03c94e Format file.lua 2020-12-22 11:32:35 +01:00
Lars Mueller
b25fc33e64 Structure overhaul 2020-02-09 01:39:54 +01:00