Nebula
Loading...
Searching...
No Matches
ioserver.h File Reference
#include "core/refcounted.h"
#include "core/singleton.h"
#include "util/array.h"
#include "util/string.h"
#include "io/filetime.h"
#include "io/schemeregistry.h"
#include "archfs/archivefilesystem.h"
#include "io/cache/streamcache.h"

Go to the source code of this file.

Classes

struct  IO::FilesystemStartupInfo

Namespaces

namespace  Http
 This file was generated with Nebula Trifid's idlc compiler tool.
namespace  IO
 Instances of wrapped stream classes.

Typedefs

using IO::FileMapFunc = void(const Util::String& file, const Util::String& folder)

Functions

void IO::StartupFilesystem (const FilesystemStartupInfo &info)
 Setup the file/stream system.
void IO::ShutdownFilesystem ()
 Break down the filesystem.
bool IO::MountArchive (const URI &uri)
 mount a file archive (without archive file extension!)
bool IO::MountEmbeddedArchive (const URI &uri)
 mount an embedded file archive
void IO::UnmountArchive (const URI &uri)
 unmount a file archive (without archive file extension!)
bool IO::IsArchiveMounted (const URI &uri)
 return true if a archive is mounted (without archive file extension!)
void IO::SetArchiveFileSystemEnabled (bool b)
 enable/disable transparent archive filesystem layering (default is yes)
bool IO::IsArchiveFileSystemEnabled ()
 return true if transparent archive filesystem is enabled
void IO::MountStandardArchives ()
 mount standard archives (e.g. home:export.zip and home:export_$(platform).zip)
void IO::UnmountStandardArchives ()
 unmount standard archives
Ptr< Stream > IO::CreateStream (const URI &uri)
 create a stream object for the given uri
bool IO::CreateDirectory (const URI &uri)
 This method creates all missing directories in a path.
bool IO::EnsureDirectoriesForFile (const URI &uri)
 create all missing directories
bool IO::DeleteDirectory (const URI &path)
 delete an empty directory
bool IO::DirectoryExists (const URI &path)
 return true if directory exists
bool IO::CopyFile (const URI &fromUri, const URI &toUri)
 This copies a file to another file.
bool IO::RenameFile (const URI &fromUri, const URI &toUri)
 Renames a file or a directory on the conventional filesystem.
bool IO::DeleteFile (const URI &path)
 delete a file
bool IO::FileExists (const URI &path)
 return true if file exists
bool IO::IsLocked (const URI &path)
 return if file is locked
void IO::SetReadOnly (const URI &path, bool b)
 set the readonly status of a file
bool IO::IsReadOnly (const URI &path)
 return read only status of a file
unsigned int IO::ComputeFileCrc (const URI &uri)
 This method computes the CRC checksum for a file.
void IO::SetFileWriteTime (const URI &path, FileTime fileTime)
 set the write-time of a file
FileTime IO::GetFileWriteTime (const URI &path)
 return the last write-time of a file
bool IO::ReadFile (const URI &path, Util::String &contents)
 read contents of file and return as string
Util::String IO::NativePath (const Util::String &path)
 return native path
bool IO::GetIOInfo (const URI &uri, IOStat &outInfo, bool prioritizeArchive)
 get file/folder information (size, access time, modified time, creation time) via stat calls
Array< String > IO::ListFiles (const URI &dir, const Util::String &pattern, bool asFullPath=false)
 list all files matching a pattern in a directory
Array< String > IO::ListDirectories (const URI &dir, const Util::String &pattern, bool asFullPath=false, bool prioritizeArchive=true)
 list all subdirectories matching a pattern in a directory
void IO::IterateFolders (const URI &dir, const Util::String &pattern, FileMapFunc iter)
 iterate through all files in hierarchy and call provided function
IO::URI IO::CreateTemporaryFilename (const URI &path)
 create a temporary file name