Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Utils
KWSys
Commits
573713fa
Commit
573713fa
authored
Feb 11, 2020
by
Sebastian Lipponer
Committed by
Brad King
Feb 12, 2020
Browse files
SystemTools: CopyFileIfDifferent: Ensure that source is a file
parent
329d8c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
SystemTools.cxx
View file @
573713fa
...
...
@@ -2182,6 +2182,10 @@ static std::string FileInDir(const std::string& source, const std::string& dir)
bool
SystemTools
::
CopyFileIfDifferent
(
const
std
::
string
&
source
,
const
std
::
string
&
destination
)
{
if
(
SystemTools
::
FileIsDirectory
(
source
))
{
return
false
;
}
// special check for a destination that is a directory
// FilesDiffer does not handle file to directory compare
if
(
SystemTools
::
FileIsDirectory
(
destination
))
{
...
...
Brad King
💬
@brad.king
mentioned in commit
e382d8fb
·
Feb 13, 2020
mentioned in commit
e382d8fb
mentioned in commit e382d8fbc28d7b363150822eee18ee1e1df8784f
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment