hyperion.ng/libsrc/utils/FileUtils.cpp
redPanther 48d8781cdf auto generation of initial config file (#271)
* - remove feature of using multiple config files for automaticly start other hyperion instances
- add auto config file creation
- tune service files

* add auto path creation for initial default config

* debian package:
rename service to hyperiond
remove copy of config file
2016-10-13 21:59:10 +02:00

20 lines
272 B
C++

#include <utils/FileUtils.h>
#include <QFileInfo>
namespace FileUtils {
QString getBaseName( QString sourceFile)
{
QFileInfo fi( sourceFile );
return fi.fileName();
}
QString getDirName( QString sourceFile)
{
QFileInfo fi( sourceFile );
return fi.path();
}
};