diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-09-05 19:59:36 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-09-05 19:59:36 +0000 |
commit | f5408a17ac87c54a7a991e310147debf95123a5d (patch) | |
tree | 19136df6152b02ede0d9517e9fa27878f9994a63 /orkbasecxx/audiofile/LibSndFileFile.cpp | |
parent | 3aeac353ac9ecfdbbb29c80fa683628af070b019 (diff) |
Added functionality to set the ownership of the directories leading up to the media file to the values specified in config.xml
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@481 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/audiofile/LibSndFileFile.cpp')
-rw-r--r-- | orkbasecxx/audiofile/LibSndFileFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/orkbasecxx/audiofile/LibSndFileFile.cpp b/orkbasecxx/audiofile/LibSndFileFile.cpp index 3da3b77..c7377fd 100644 --- a/orkbasecxx/audiofile/LibSndFileFile.cpp +++ b/orkbasecxx/audiofile/LibSndFileFile.cpp @@ -15,6 +15,7 @@ #include "Utils.h" #include "LibSndFileFile.h" +#include "ConfigManager.h" LibSndFileFile::LibSndFileFile(int fileFormat) { @@ -54,7 +55,7 @@ void LibSndFileFile::Open(CStdString& filename, fileOpenModeEnum mode, bool ster throw(CStdString("libsndfile: Selected output format not supported")); } - FileRecursiveMkdir(m_filename); + FileRecursiveMkdir(m_filename, CONFIG.m_audioFilePermissions, CONFIG.m_audioFileOwner, CONFIG.m_audioFileGroup, CONFIG.m_audioOutputPath); int sndFileMode; mode == READ ? sndFileMode = SFM_READ : sndFileMode = SFM_WRITE; |