|
|
@@ -275,6 +275,14 @@ namespace bx
|
|
|
return *this;
|
|
|
}
|
|
|
|
|
|
+ void FilePath::clear()
|
|
|
+ {
|
|
|
+ if (!isEmpty() )
|
|
|
+ {
|
|
|
+ set("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
void FilePath::set(Dir::Enum _dir)
|
|
|
{
|
|
|
char tmp[kMaxFilePath];
|
|
|
@@ -384,6 +392,11 @@ namespace bx
|
|
|
;
|
|
|
}
|
|
|
|
|
|
+ bool FilePath::isEmpty() const
|
|
|
+ {
|
|
|
+ return 0 == strCmp(m_filePath, ".");
|
|
|
+ }
|
|
|
+
|
|
|
bool make(const FilePath& _filePath, Error* _err)
|
|
|
{
|
|
|
BX_ERROR_SCOPE(_err);
|