mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
gui/nfs: add default for local dir, autocreate local dir
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e9ef5bdf4
Author: martii <m4rtii@gmx.de>
Date: 2013-06-30 (Sun, 30 Jun 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#endif
|
||||
|
||||
#include <system/fsmounter.h>
|
||||
#include <system/helpers.h>
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <limits>
|
||||
@@ -201,6 +202,9 @@ CFSMounter::MountRes CFSMounter::mount(const std::string &ip, const std::string
|
||||
}
|
||||
|
||||
printf("[CFSMounter] Mount(%d) %s:%s -> %s\n", (int) fstype, ip.c_str(), dir.c_str(), local_dir.c_str());
|
||||
|
||||
CFileHelpers fh;
|
||||
fh.createDir(local_dir.c_str(), 0755);
|
||||
|
||||
if (isMounted(local_dir))
|
||||
{
|
||||
|
Reference in New Issue
Block a user