#42 CRemoteFile name can include directory path components

This commit is contained in:
Mat Sutcliffe
2020-07-03 21:05:37 +01:00
parent 5ad0e83cea
commit eae0f5c008
3 changed files with 10 additions and 7 deletions

View File

@@ -59,6 +59,9 @@ namespace BlackMisc
//! Name
const QString &getName() const { return m_name; }
//! Name with directory stripped
QString getBaseName() const { return m_name.section('/', -1); }
//! Has name?
bool hasName() const { return !m_name.isEmpty(); }