summaryrefslogtreecommitdiff
path: root/src/filesys.cpp
Commit message (Collapse)AuthorAge
* Fix a stringop-truncation GCC warningLoïc Blot2018-12-04
| | | | | | | ``` 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); ```
* Android: Fix recursive delete (#7882)stujones112018-11-21
|
* Really delete things in fs::RecursiveDelete (#7433)Vitaliy2018-08-18
| | | | | | * Really delete things in fs::RecursiveDelete
* Android: Use correct temporary path (#7463)stujones112018-06-23
|
* Load files from subfolders in texturepacksnumber Zero2017-11-17
| | | | Updated and rebased version of a PR by red-001
* Modernize various filesLoic Blot2017-08-18
| | | | | | | | | * range-based for loops * emplace_back instead of push_back * code style * C++ headers instead of C headers * Default operators * empty stl function
* Fix RemoveRelatvePathComponentsShadowNinja2016-12-20
| | | | | This used to return "/foo" for "../foo" when it should return the enpty string (i.e., error removing all relative components).
* Fix fs::RemoveRelativePathComponents for paths with a leading dot componentShadowNinja2016-11-24
| | | | | | 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.
* Use MoveFileEx to rename files on Windows (not rename)gregorycu2016-05-01
|
* filesys: safeWriteToFile(): Remove the target file before rename only on WindowsPerttu Ahola2016-01-01
| | | | | | | | | | 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.
* Add seperate cache pathShadowNinja2015-12-07
| | | | | This is set to the XDG cache path where possible. It's set to the app's cache path on Android.
* Windows: Fix some warnings.Diego Martinez2015-07-09
|
* Add mod securityShadowNinja2015-05-16
| | | | Due to compatibility concerns, this is temporarily disabled.
* Tests: Modularize unit testingkwolekr2015-04-26
| | | | | | Split unit tests into separate files under src/unittest/ Give better unittest diagnostics Clean up some code
* Schematics: Prepend mod path to relative schematic filepathskwolekr2015-04-08
|
* Fix fs::GetRecursiveSubPaths trying to get directory lists for filesShadowNinja2014-12-24
|
* Rewrite fs:GetDirListing(file) by kahrlSmallJoker2014-12-10
|
* Ignore .name directories and filesSmallJoker2014-12-10
| | | | Signed-off-by: Craig Robbins <kde.psych@gmail.com>
* Remove temporary file at safeWriteToFile()selat2014-08-16
|
* Add support for Android 2.3+sapier2014-06-29
| | | | | | | | | | | | | 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!
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
|
* Dont write directly to files but rather write and copy a tmp filePilzAdam2013-08-13
|
* Fix various memory access problems detected by valgrindKahrl2013-08-07
|
* Replace C++ mainmenu by formspec powered onesapier2013-07-02
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-05
| | | | GPLv2/later, by agreement of major contributors
* Add #include <unistd.h> to filesys.cppPerttu Ahola2012-04-06
|
* Better file/directory removal platform code and utilitiesPerttu Ahola2012-03-26
|
* Small fix to fs::GetDirListing when trying to list an inexistent directoryPerttu Ahola2012-03-25
|
* Fix filesys.cpp debug output to go into debug.txtPerttu Ahola2012-03-23
|
* Fix CreateAllDirs() (failed for relative fully non-existing path)Perttu Ahola2012-03-11
|
* Check symlinks with stat() to know if they are directories or notPerttu Ahola2011-12-04
|
* Add support for unix filesystems which yield DT_UNKNOWN in dirent->d_type, ↵Perttu Ahola2011-12-04
| | | | falling back on stat().
* Fix map delete on windows (concatenate paths correctly with / or \ depending ↵Perttu Ahola2011-10-16
| | | | on OS)
* Fix bug in posix file/directory removal wrapper, as pointed out by kahrlPerttu Ahola2011-09-06
|
* Windows.h -> windows.h for cross-mingw buildPerttu Ahola2011-08-14
|
* New map directory structure that avoids map size being limited by filesystemCiaran Gultnieks2011-05-18
|
* should work nowPerttu Ahola2011-01-26
|
* Little fixesPerttu Ahola2011-01-26
|
* Map deletion buttonPerttu Ahola2011-01-26
|
* removed boost support from filesys.cpp; default to posixPerttu Ahola2011-01-07
|
* license stuffPerttu Ahola2010-11-29
| | | | | --HG-- rename : src/licensecomment.txt => licensecomment.txt
* Initial filesPerttu Ahola2010-11-27