mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
#42 CRemoteFile name can include directory path components
This commit is contained in:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user