65 Commits

Author SHA1 Message Date
Steffen Schuemann
1d41167941 refs #68, experimental support for emscripten 2020-08-20 22:26:56 +02:00
Steffen Schuemann
3f1c185ab4 fixes #63, Squashed commit of the following:
commit fdcb3ce89ba676d3e06b30c18c04e926a775366c
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Thu Apr 9 12:59:13 2020 +0200

    refs #63, fix typo

commit a5cadd2e5060da75315f79971dae56a0e91a8023
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Thu Apr 9 11:45:36 2020 +0200

    refs #63, work on issues with wchar and clang in windows.
2020-04-10 11:26:04 +02:00
Michael M
e3201da883 lexically_relative: ignore trailing slash on base
Previously,

    fs::path("a/b").lexically_relative("a/")

would incorrectly return "../b". Now it returns "b".
2020-03-22 16:26:59 -07:00
Steffen Schuemann
d93ccea812 refs #55, fs::create_directories reported true if it didn't need to create anything. 2020-03-05 06:48:54 +01:00
Steffen Schuemann
0989fd1ca1 Version Bump to v1.3.0, switch to MIT license 2020-02-08 18:22:37 +01:00
Steffen Schuemann
f5bfb98aea minor refactorings and work on ci integration 2019-12-08 13:49:15 +01:00
Steffen Schümann
c37d756a7f refs #41, fs::rename now overwrites existing files on windows, extended tests 2019-11-22 18:48:10 +01:00
Steffen Schümann
5a933d5c52 refs #39, remove DWORD dependency in forwarding mode and change test to trigger an error if there is a dependency to windows.h 2019-11-22 18:46:21 +01:00
gulrak
059b2fab78 Small test cleanup to help ctest. 2019-11-15 08:29:05 +01:00
Steffen Schuemann
cf5188899b refs #33, added test for trailing preferred seperator on last '..' for path::lexically_normal 2019-10-23 22:21:10 +02:00
Steffen Schuemann
fbdee68f21 refs #27, Squashed commit of the following:
commit aabbf8f3d880dcd0aeaa97f014d91d54dfa24ed4
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Sep 21 16:22:25 2019 +0200

    refs #27, ghc::filesystem::path::preferred_seperator fix for VS2015

commit 03b437cefb39746127b34ce6c9d47df7209a27c7
Merge: cbe0c61 589219b
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Fri Sep 20 13:42:31 2019 +0200

    Merge branch 'master' into feature-27-mingw-preferred_separator

commit cbe0c61492f3a6817f03343bb16d73211625a9cb
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Sat Aug 24 22:20:10 2019 +0200

    Test for workaround of static constexpr issue
2019-09-21 16:46:00 +02:00
Steffen Schuemann
79fb211570 Added std::string_view test checks when __cpp_lib_string_view is defined 2019-08-15 14:47:13 +02:00
Steffen Schuemann
8906e8ce91 refs #22, copy_options now forwarded to copy_file, added test. 2019-08-09 16:37:15 +02:00
Steffen Schuemann
3c14bd1af2 Fix for shadow issue in tests. 2019-07-04 08:54:56 +02:00
Steffen Schuemann
361af7e51d Fix against clock conversion precision issues in tests. 2019-07-04 08:35:20 +02:00
Steffen Schuemann
8dee4d7731 Fix for -Wshadow warning, and some issues when compiling tests against std::filesystem on GCC 9.1 2019-07-04 08:00:35 +02:00
Steffen Schuemann
98dad7f0a1 refs #18, unicode error raise can now be enabled with define GHC_RAISE_UNICODE_ERRORS 2019-06-02 11:52:07 +02:00
Steffen Schuemann
e4e6246eaa refs #17, fix for wrong use of fs::ofstream 2019-06-02 09:33:19 +02:00
Steffen Schuemann
3fcb3f51e1 optional Windows wchar_t/wstring support
Squashed commit of the following:

commit f4a85d2070bb62bdca644f81faa953ba5fb5e491
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sun May 19 10:02:22 2019 +0200

    refs #17, refs #18, Missing use of alloc in fromUtf8 (fixed on master) and initialization order issue.

commit aa1cb7081630393659204641792bc7641f0c72aa
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sun May 19 09:46:02 2019 +0200

    refs #18, fighting VS2015 sfinae issues

commit 15788d8eb9972965ec4562c6e672a8a460e5b655
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat May 18 10:35:25 2019 +0200

    refs #17, work on wchar_t/wstring support on Windows.
2019-05-31 07:08:48 +02:00
Steffen Schuemann
235a594240 Squashed commit of the following:
commit 9cc8cbf731375fbedac9e76f883664a27814bff0
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Mon May 27 09:36:09 2019 +0200

    Workaround for bug in clangs libc++ std::filesystem::path::format.

commit 72285d01f2a269247084dddb8fe8d9da66f082a1
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Mon May 27 09:17:49 2019 +0200

    Test coverage.

commit f3ab2af99fda2dad26334d2a4884faa7463f7edb
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Sun May 26 12:35:39 2019 +0200

    Fixed std builds, removed non-standard conforming swap in directory_iterator/recursive_directory_iterator.

commit 3ae76b29a0745319d2a64e34bdbcb35264ad3e99
Author: gulrak <s.schuemann@pobox.com>
Date:   Sun May 26 11:08:52 2019 +0200

    Additional tests.

commit af4bbe14e192b464d3fece68c5dbcf3bf1c4e214
Author: gulrak <s.schuemann@pobox.com>
Date:   Fri May 24 21:52:15 2019 +0200

    Added more tests.
2019-05-31 00:46:29 +02:00
Steffen Schümann
96ea0dd12e Activated an aditional unit test on windows. 2019-05-24 00:29:17 +02:00
Steffen Schuemann
b970da3128 Disabled bad check that is not dependend of root name support. 2019-05-23 09:19:49 +02:00
Steffen Schuemann
22de93ac45 Fix for error handling issue in utf8 converter and additional tests for enhanced coverage. 2019-05-23 08:39:04 +02:00
Steffen Schuemann
91e02dc2c4 Work on CI support for MingW, fixing some MingW issues 2019-05-14 08:42:29 +02:00
Steffen Schuemann
7e975a8f7f Updated readme, more tests, some typos in comments. 2019-05-11 15:33:08 +02:00
Steffen Schuemann
bc1abfa01e Fix file_time_type handling when building against MSVC C++17 std::filesystem, additional test fixes. 2019-05-07 20:33:56 +02:00
Steffen Schuemann
dc37276a9a Squashed commit of the following:
commit 8d9f245e379d373942c0f49be19dacc9293cdcf0
Merge: 3ceb4b0 857a355
Author: gulrak <s.schuemann@pobox.com>
Date:   Fri May 3 23:52:57 2019 +0200

    Merge branch 'development-v1.1' of https://github.com/gulrak/filesystem into development-v1.1

commit 3ceb4b0e4fe90be46b1fdbdfb7e2b3f160cccf3c
Author: gulrak <s.schuemann@pobox.com>
Date:   Fri May 3 23:51:48 2019 +0200

    Less noisy interoperability testing on weakly_canonial()

commit 38f82a90ef5f4ec1fa341ce3ab34f3836a6bd9ea
Author: gulrak <s.schuemann@pobox.com>
Date:   Fri May 3 23:50:43 2019 +0200

    Additional fix for recursive_directory_iterator

commit 857a3558fb13e8fae76e29b5b91cb76b5e98ea20
Merge: 9da5784 b557b5b
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Fri May 3 23:47:20 2019 +0200

    Merge branch 'development-v1.1' of github.com:gulrak/filesystem into development-v1.1

    # Conflicts:
    #	test/filesystem_test.cpp

commit 9da57846ac4de06c4b0521ab69ea42816fd6a029
Merge: 96e89ae 43e75c3
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Fri May 3 23:42:31 2019 +0200

    Merge remote-tracking branch 'origin/master' into development-v1.1

commit 96e89ae7f9e983cb3d0977d9ba77f421a0c06b0f
Merge: 9d71161 882c60b
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Fri May 3 23:40:18 2019 +0200

    Merge remote-tracking branch 'origin/master' into development-v1.1

commit b557b5b476c085183bd3da72cc9f511df3b52272
Merge: 263a2d2 9d71161
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Fri May 3 22:44:25 2019 +0200

    Merge branch 'development-v1.1' of https://github.com/gulrak/filesystem into development-v1.1

commit 263a2d2c5b9f25631513271a6e26a9cb66e8f9da
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Fri May 3 22:44:01 2019 +0200

    Work on Windows tests.

commit 9d71161323f22e994b51fda73ebc19af9e67d6e6
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Fri May 3 08:30:40 2019 +0200

    Fix for issues with recursive_directory_iterator not behaving like an input iterator and regarding pop()/depth().

commit 2ac1352b4a37fdb247b56fb63c1e2c3f56761649
Author: gulrak <s.schuemann@pobox.com>
Date:   Thu May 2 09:12:42 2019 +0200

    Refactored builds with std::fs to a CMake macro, added du example, added behaviour switch

commit 624a6f63e5639504c2b554ba89985ef9c01c6fa9
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Thu May 2 09:01:15 2019 +0200

    Add path parameters to filesystem_error::what
2019-05-05 08:51:53 +02:00
Steffen Schümann
da215a8c96 refs #12, fixed small issue with new recursive_directory_iterator tests on Windows due to not comparing generic format. 2019-05-04 09:16:36 +02:00
gulrak
e8ced30a84 Fixed merge error leading to compile error. 2019-05-04 08:59:21 +02:00
Steffen Schuemann
dac42f89aa Merge branch 'master' of github.com:gulrak/filesystem 2019-05-04 08:52:15 +02:00
Steffen Schuemann
5ea334899a refs #12, added more tests to recursive directory iterator, fixed additional issue with pop(). 2019-05-04 08:47:41 +02:00
Steffen Schümann
547ecfb28f Test helper for file_time_type got additional error checking 2019-05-04 08:08:04 +02:00
Steffen Schümann
43e75c3869 refs #11, added more tests 2019-05-03 23:14:05 +02:00
Steffen Schuemann
882c60baf2 refs #11, successive ".." sequences handeld wrong in lexically_normal() 2019-05-03 22:34:08 +02:00
Steffen Schuemann
c75a663ec9 Squashed commit of the following:
commit 742d51b24cce19915e10f0d1f97cf49ff408b66d
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date:   Sat Apr 27 10:17:15 2019 +0200

    Fixed ctest call.

commit f96b65562d42cc6801ba3855dc603117e4ce864a
Author: Steffen Schümann <s.schuemann@pobox.com>
Date:   Sat Apr 27 09:42:20 2019 +0200

    Fix in canonical root path handling.

commit 1cd346d23e87b274d32b9d56a8b6327e36be4147
Author: gulrak <s.schuemann@pobox.com>
Date:   Sat Apr 27 06:22:13 2019 +0200

    Work on MingW issues and additional tests.
2019-04-27 10:36:00 +02:00
Steffen Schuemann
c63d9d7481 Updated readme and comments. 2019-04-27 07:30:58 +02:00
Steffen Schuemann
9085725056 Work on CI integration. 2019-04-19 14:16:46 +02:00
Steffen Schuemann
8b222fc06f Work on CI integration. 2019-04-19 14:08:28 +02:00
Steffen Schuemann
2e9cf2940f Added info on unicode test failing with std::filesystem from GCC 8.2.0 on macOS 10.12. 2019-04-18 13:06:19 +02:00
Steffen Schümann
e8b2bee859 Some changes to make the forwarding/implementation way work on MSVC. 2019-03-24 12:46:19 +01:00
gulrak
03f849d23f Added support for forwarding/implementation includes to enhance compile time and hide system headers. 2019-03-24 01:53:44 -07:00
gulrak
72e8d2e950 Restructured include directories and enhanced CMake support. 2019-03-24 01:32:13 -07:00
Steffen Schümann
4e98fbf315 Fix compile error on Windows test. 2019-03-22 22:42:23 +01:00
Steffen Schuemann
1b7d9457c0 Fix for compiler errors on allocator variant test for generic_string() on GCC8 std::filesystem. 2019-03-22 22:30:01 +01:00
gulrak
78ddb7aed7 Renamed filesystem.h to filesystem.hpp 2019-03-22 14:11:41 -07:00
gulrak
ede29b0495 refs #9, additional checks for generic_string() 2019-03-22 13:44:20 -07:00
Steffen Schuemann
036cf96bb6 additions to changes for #6, don't count removal of non-existing files 2019-03-06 07:05:10 +01:00
Steffen Schuemann
b98a74ab1d directory_iterator on Windows should free resources when reaching end(), #8 2019-03-06 06:53:17 +01:00
Steffen Schuemann
1349d3d5a5 Fix for remove_all handling when calling for non-existent or regular file. (#6) 2019-03-06 00:05:49 +01:00
Steffen Schuemann
a4303f9207 #4: Added test code, fixed missing error_code propagation, and error handling in fs::copy and fs::remove_all. 2019-01-02 19:59:27 +01:00