aboutsummaryrefslogtreecommitdiff
path: root/src/filesys.cpp
AgeCommit message (Collapse)Author
2023-01-23Implement --debugger option to improve UX when debugging crashes (#13157)sfan5
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-07-14Refactor ModConfigurationrubenwardy
2021-12-29Socket-related cleanupssfan5
Improve error handling on Windows and reduce the size of the `Address` class
2021-10-15Fix compiling on Windows with Visual StudioLoneWolfHT
2021-10-07Move instead of copy during content install if possiblesfan5
2021-10-07Make fs::extractZipFile thread-safesfan5
2021-09-14Add Windows-specific CreateTempFile() implementationsfan5
Once again MSVC is the only compiler not supporting basic POSIX functionality.
2021-09-09Dynamic_Add_Media v2 (#11550)sfan5
2021-05-06fix: extractZipFile is not part of Client but more generic.Loic Blot
This solve a crash from mainmenu while extracting the zip
2021-02-07Use consistent temp folder path (#10892)rubenwardy
2021-01-22Remove dead code (#10845)rubenwardy
2020-12-24Fix some minor code issues all over the placesfan5
2020-09-16Clean up server-side translations, remove global variable (#10075)rubenwardy
2020-06-13Server pushing media at runtime (#9961)sfan5
2018-12-04Fix a stringop-truncation GCC warningLoïc Blot
``` minetest/src/filesys.cpp:312:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 10000 equals destination size [-Wstringop-truncation] strncpy(argv_data[2], path.c_str(), 10000); ```
2018-11-21Android: Fix recursive delete (#7882)stujones11
2018-08-18Really delete things in fs::RecursiveDelete (#7433)Vitaliy
* Really delete things in fs::RecursiveDelete
2018-06-23Android: Use correct temporary path (#7463)stujones11
2017-11-17Load files from subfolders in texturepacksnumber Zero
Updated and rebased version of a PR by red-001
2017-08-18Modernize various filesLoic Blot
* range-based for loops * emplace_back instead of push_back * code style * C++ headers instead of C headers * Default operators * empty stl function
2016-12-20Fix RemoveRelatvePathComponentsShadowNinja
This used to return "/foo" for "../foo" when it should return the enpty string (i.e., error removing all relative components).
2016-11-24Fix fs::RemoveRelativePathComponents for paths with a leading dot componentShadowNinja
Previously, paths like ./worlds would be resolved to /worlds since the leading dot was considered just as irrelevant as a dot in the middle of the path.
2016-05-01Use MoveFileEx to rename files on Windows (not rename)gregorycu
2016-01-01filesys: safeWriteToFile(): Remove the target file before rename only on WindowsPerttu Ahola
Removing the target file on other platforms was enabled likely unintentionally by commit 5f1f1151d3a9c113902630adc16cc3f4845da7ba. This may be the reason why there has been corruption of files on Linux on hard shutdowns. Previously I described the problem and this fix in issue #3084.
2015-12-07Add seperate cache pathShadowNinja
This is set to the XDG cache path where possible. It's set to the app's cache path on Android.
2015-07-09Windows: Fix some warnings.Diego Martinez
2015-05-16Add mod securityShadowNinja
Due to compatibility concerns, this is temporarily disabled.
2015-04-26Tests: Modularize unit testingkwolekr
Split unit tests into separate files under src/unittest/ Give better unittest diagnostics Clean up some code
2015-04-08Schematics: Prepend mod path to relative schematic filepathskwolekr
2014-12-24Fix fs::GetRecursiveSubPaths trying to get directory lists for filesShadowNinja
2014-12-10Rewrite fs:GetDirListing(file) by kahrlSmallJoker
2014-12-10Ignore .name directories and filesSmallJoker
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-08-16Remove temporary file at safeWriteToFile()selat
2014-06-29Add support for Android 2.3+sapier
There have been plenty of ppl involved in creating this version. I don't wanna mention names as I'm sure I'd forget someone so I just tell where help has been done: - The partial android versions done by various ppl - Testing on different android devices - reviewing code (especially the in core changes) - testing controls - reviewing texts A big thank you to everyone helping this to be completed!
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-08-13Dont write directly to files but rather write and copy a tmp filePilzAdam
2013-08-07Fix various memory access problems detected by valgrindKahrl
2013-07-02Replace C++ mainmenu by formspec powered onesapier
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-04-06Add #include <unistd.h> to filesys.cppPerttu Ahola
2012-03-26Better file/directory removal platform code and utilitiesPerttu Ahola
2012-03-25Small fix to fs::GetDirListing when trying to list an inexistent directoryPerttu Ahola
2012-03-23Fix filesys.cpp debug output to go into debug.txtPerttu Ahola
2012-03-11Fix CreateAllDirs() (failed for relative fully non-existing path)Perttu Ahola
2011-12-04Check symlinks with stat() to know if they are directories or notPerttu Ahola
2011-12-04Add support for unix filesystems which yield DT_UNKNOWN in dirent->d_type, ↵Perttu Ahola
falling back on stat().
2011-10-16Fix map delete on windows (concatenate paths correctly with / or \ depending ↵Perttu Ahola
on OS)