Fix mixed line endings
This commit is contained in:
@@ -377,7 +377,7 @@ bool FileInfo::isFile () const
|
||||
// If we can open it must be an existing file, otherwise we assume it
|
||||
// is a directory (which doesn't need to be true for any cases)
|
||||
std::ifstream str(FileName.c_str(), std::ios::in | std::ios::binary);
|
||||
if (!str)
|
||||
if (!str)
|
||||
return false;
|
||||
str.close();
|
||||
return true;
|
||||
@@ -552,7 +552,7 @@ bool FileInfo::createDirectories() const
|
||||
|
||||
bool FileInfo::deleteDirectory() const
|
||||
{
|
||||
if (isDir() == false )
|
||||
if (isDir() == false )
|
||||
return false;
|
||||
#if defined (FC_OS_WIN32)
|
||||
std::wstring wstr = toStdWString();
|
||||
@@ -566,7 +566,7 @@ bool FileInfo::deleteDirectory() const
|
||||
|
||||
bool FileInfo::deleteDirectoryRecursive() const
|
||||
{
|
||||
if (isDir() == false )
|
||||
if (isDir() == false )
|
||||
return false;
|
||||
std::vector<Base::FileInfo> List = getDirectoryContent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user