gulrak
461a6c0154
Updated readme and version bump to v1.2.8
v1.2.8
2019-11-15 09:05:17 +01:00
gulrak
059b2fab78
Small test cleanup to help ctest.
2019-11-15 08:29:05 +01:00
gulrak
01d1f685fc
Merge pull request #37 from cybik/patch-1
...
Typo
2019-11-10 22:55:00 +01:00
Renaud Lepage
3a6c550dc0
Typo
2019-11-09 16:40:09 -08:00
Steffen Schuemann
c1a2fb5d17
refs #36 , fix for warnings on xcode 11.2 due to unhelpful use of references
2019-11-07 09:10:09 +01:00
Steffen Schuemann
7301cd1105
refs #35 , new option GHC_FILESYSTEM_WITH_INSTALL defaulting to ON only if not used as subdirectory.
2019-11-07 08:56:35 +01:00
Steffen Schuemann
9ac9c9ca49
Adding Xcode 11.2 to travis
2019-11-07 06:21:12 +01:00
gulrak
741eaca3fd
Merge pull request #34 from jeanguyomarch/toctou-race
...
fix: TOCTOU race when creating directories
2019-11-06 19:54:09 +01:00
Jean Guyomarc'h
b5df8c5942
fix: TOCTOU race when creating directories
...
When create_directories() is called to create a chain of directories,
path components are created one by one. For each path component, ghc
checks if the directory exists. If not it attempts to create it. In
case of failure to create this directory, the function fails.
This behavior exhibits a TOCTOU (Time Of Check/Time Of Use) race when
different threads of execution (e.g. different processes) attempt to
create the same paths (or paths that contain a common hierarchy).
The following sequence of events between threads T1 and T2 illustrates
the issue:
T1: checks path P exists: no. Will attempt to create P...
T2: checks path P exists: no. Will attempt to create P...
T1: creates P, no error
T2: fails to create P: raises an error
It is not desirable for create_directories() to fail in this case. This
commit mirrors the GNU libstdc++ implementation of the c++ filesystem
library: if the creation of a directory fails, we will inspect the path
that should have been created as a directory. If it is indeed a
directory (another thread of execution created it for us), the error is
now reset and the function continues to iterate to the next path
component.
2019-11-06 15:09:52 +01:00
Steffen Schuemann
9db85faf14
refs #33 , fix for lexically_normal
2019-10-23 23:08:15 +02: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
8302328ef9
Merge branch 'master' of github.com:gulrak/filesystem
2019-10-03 10:02:05 +02:00
Steffen Schuemann
24d6c7e7de
Updated readme.
2019-10-03 10:01:45 +02:00
gulrak
21fc37b0e2
Merge pull request #31 from jwnimmer-tri/deprecated-static-constexpr-storage
...
Fix storage deprecation warning when in C++17 mode
2019-09-30 20:37:22 +02:00
gulrak
9b9528cfad
Merge pull request #32 from jwnimmer-tri/warning-old-style-cast
...
Fix old-style-cast warnings
2019-09-30 20:35:29 +02:00
Jeremy Nimmer
8f4ea166a2
Fix old-style-cast warnings
...
Fixes "error: use of old-style cast [-Werror=old-style-cast]" when compiling
with GCC 7.4.
2019-09-30 10:05:01 -04:00
Jeremy Nimmer
ee8dd08c6c
Fix storage deprecation warning when in C++17 mode
...
Fixes "error: redundant redeclaration of 'constexpr' static data member
'ghc::filesystem::path_helper_base<char_type>::preferred_separator'
[-Werror=deprecated]" when compiling with GCC 7.4 in -std=c++17 mode.
2019-09-30 09:45:59 -04:00
gulrak
65b54093ea
Merge pull request #24 from JonasVautherin/export-target
...
export as target
2019-09-29 19:20:06 +02:00
gulrak
49df1eaefb
Merge pull request #30 from asmaloney/options-submodule
...
CMake: Do not include test and example options if including as submodule
2019-09-27 19:43:36 +02:00
Steffen Schuemann
9a3c37fedf
Merge branch 'master' of github.com:gulrak/filesystem
2019-09-27 19:42:50 +02:00
Steffen Schuemann
9de8ce5b38
wip version bump
2019-09-27 19:42:12 +02:00
Andy Maloney
ccdd8ec40e
Do not include test and example options if including as submodule
...
Also rename these options so it's clear they are part of GHC Filesystem
2019-09-27 13:03:07 -04:00
gulrak
aae1331300
Update README.md
2019-09-21 18:30:36 +02:00
Steffen Schuemann
15a82e9098
Version bump to v1.2.6
v1.2.6
2019-09-21 17:06:54 +02:00
Steffen Schuemann
6a9196fc39
Updated README.md
2019-09-21 16:56:42 +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
589219bb0d
refs #29 , fixes for MinGW warnings
2019-09-01 09:23:39 +02:00
Steffen Schuemann
d12bdbed99
refs #29 , work on stricter warning set
2019-09-01 08:27:23 +02:00
Jonas Vautherin
daebcb3c96
export as target
2019-08-16 09:43:22 +02:00
Steffen Schuemann
135015f20b
Fix for wchar_t issue introduced with last commit.
2019-08-15 15:19:48 +02:00
Steffen Schuemann
1da2158ed1
Version bump to wip version, updated readme, some cleanup on defines.
2019-08-15 14:56:11 +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
gulrak
4b10425417
Merge pull request #25 from karjonas/string_view
...
Fix missing string_view path specialization for C++17 support
2019-08-15 14:31:55 +02:00
Jonas Karlsson
af3d35cc1d
Fix missing string_view path method
2019-08-14 16:33:31 +02:00
gulrak
b6526679a3
Merge pull request #23 from JonasVautherin/add-build-options
...
make tests and examples optional
2019-08-13 16:17:41 +02:00
Jonas Vautherin
57f3a14d59
make tests and examples optional
2019-08-13 15:13:09 +02:00
Steffen Schuemann
e980ed0dc4
Version bump and updated readme for v1.2.4.
v1.2.4
2019-08-11 09:53:36 +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
17bad8c51d
Updated readme and wip version.
2019-08-05 12:10:00 +02:00
Steffen Schuemann
c2c74695d2
More warning fixes to support -Wextra on MingW.
2019-07-05 07:28:21 +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
09bd182416
Updated readme.
2019-06-25 19:27:34 +02:00
Steffen Schuemann
e046f1ad2b
Fixed wrong release links in readme.
2019-06-25 00:14:01 +02:00
Steffen Schuemann
b71022f70c
Updated readme.
2019-06-23 16:50:15 +02:00
Steffen Schuemann
7c8fb02574
Version bump, updated readme.
v1.2.2
2019-06-23 16:45:43 +02:00
Steffen Schuemann
8e824cedef
refs #21 , dropping macro based detection and using generic aproach.
2019-06-17 20:45:14 +02:00
Steffen Schuemann
091c08663a
Updated readme.
2019-06-02 13:16:11 +02:00
Steffen Schuemann
eec82f8de6
Version bump, release v1.2.0
v1.2.0
2019-06-02 12:53:34 +02:00