Skip to content

Commit

Permalink
Initial API for @evanweaver to work with
Browse files Browse the repository at this point in the history
[#83945182]
  • Loading branch information
macumber committed Dec 4, 2014
1 parent 99333be commit 9cb262a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openstudiocore/src/utilities/core/PathHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,14 @@ bool isEmptyDirectory(const path& dirName)
return dir.entryInfoList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot).empty();
}

bool isNetworkPath(const path& p)
{
return false;
}

bool isNetworkPathAvailable(const path& p)
{
return false;
}

} // openstudio
6 changes: 6 additions & 0 deletions openstudiocore/src/utilities/core/PathHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ UTILITIES_API bool copyDirectory(const path& source,
/** Determines if a directory is empty, returns false if directory does not exist, not subject to MAX_PATH */
UTILITIES_API bool isEmptyDirectory(const path& dirName);

/** Determines if a path is on a network drive. Only implemented for Windows currently. */
UTILITIES_API bool isNetworkPath(const path& p);

/** Determines if a path is on a network drive and if that network resources is available. Only implemented for Windows currently. */
UTILITIES_API bool isNetworkPathAvailable(const path& p);

} // openstudio

#endif //UTILITIES_CORE_PATHHELPERS_HPP

4 comments on commit 9cb262a

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

83945182_UserMeasuresDir (macumber) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

83945182_UserMeasuresDir (macumber) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2157 of 2182 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

83945182_UserMeasuresDir (macumber) - i386-Windows-7-VisualStudio-12: OK (2166 of 2182 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

83945182_UserMeasuresDir (macumber) - Win64-Windows-7-VisualStudio-12: OK (2167 of 2182 tests passed)

Build Badge Test Badge

Please sign in to comment.