2007-05-12 18:17:40 +00:00
|
|
|
#include "backends/fs/posix/posix-fs-factory.h"
|
2007-05-03 02:39:33 +00:00
|
|
|
#include "backends/fs/posix/posix-fs.cpp"
|
|
|
|
|
|
|
|
AbstractFilesystemNode *POSIXFilesystemFactory::makeRootFileNode() const {
|
|
|
|
return new POSIXFilesystemNode();
|
|
|
|
}
|
|
|
|
|
|
|
|
AbstractFilesystemNode *POSIXFilesystemFactory::makeCurrentDirectoryFileNode() const {
|
|
|
|
char buf[MAXPATHLEN];
|
|
|
|
getcwd(buf, MAXPATHLEN);
|
|
|
|
return new POSIXFilesystemNode(buf, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
AbstractFilesystemNode *POSIXFilesystemFactory::makeFileNodePath(const String &path) const {
|
|
|
|
return new POSIXFilesystemNode(path, true);
|
|
|
|
}
|