PgVFS.NET
A C# System.IO compatible File System on Postgres
 All Classes Namespaces Functions Enumerations Enumerator Properties Pages
Vfs.IVfsDirectory Interface Reference

Same as System.IO.Directory singleton More...

Public Member Functions

void CreateDirectory (string path)
 Creates a directory if not exists More...
 
void Delete (string path, bool recurse=false)
 Delete directory More...
 
bool Exists (string path)
 A directory exists? More...
 
DateTime GetCreationTime (string path)
 Get creation time in local time More...
 
DateTime GetCreationTimeUtc (string path)
 Get creation time in UTC More...
 
string[] GetDirectories (string path, string searchPattern=null)
 Get all directories in a directory More...
 
string[] GetFiles (string path, string searchPattern=null)
 Get all files in a directory More...
 
DateTime GetLastWriteTime (string path)
 Get last write time in local time More...
 
DateTime GetLastWriteTimeUtc (string path)
 Ge last write time in UTC More...
 
void Move (string sourceDirName, string destDirName)
 Move one directory to another location More...
 
void SetLastWriteTime (string path, DateTime lastWriteTime)
 Set last write time in local time More...
 
void SetLastWriteTimeUtc (string path, DateTime lastWriteTimeUtc)
 Set last write time in UTC More...
 

Detailed Description

Same as System.IO.Directory singleton

Member Function Documentation

void Vfs.IVfsDirectory.CreateDirectory ( string  path)

Creates a directory if not exists

Parameters
path
void Vfs.IVfsDirectory.Delete ( string  path,
bool  recurse = false 
)

Delete directory

Parameters
path
recurseand all its contents recursively
bool Vfs.IVfsDirectory.Exists ( string  path)

A directory exists?

Parameters
path
Returns
DateTime Vfs.IVfsDirectory.GetCreationTime ( string  path)

Get creation time in local time

Parameters
path
Returns
DateTime Vfs.IVfsDirectory.GetCreationTimeUtc ( string  path)

Get creation time in UTC

Parameters
path
Returns
string [] Vfs.IVfsDirectory.GetDirectories ( string  path,
string  searchPattern = null 
)

Get all directories in a directory

Parameters
path
searchPatternwildcard
Returns
string [] Vfs.IVfsDirectory.GetFiles ( string  path,
string  searchPattern = null 
)

Get all files in a directory

Parameters
path
searchPatternwildcard
Returns
DateTime Vfs.IVfsDirectory.GetLastWriteTime ( string  path)

Get last write time in local time

Parameters
path
Returns
DateTime Vfs.IVfsDirectory.GetLastWriteTimeUtc ( string  path)

Ge last write time in UTC

Parameters
path
Returns
void Vfs.IVfsDirectory.Move ( string  sourceDirName,
string  destDirName 
)

Move one directory to another location

Parameters
sourceDirName
destDirName
void Vfs.IVfsDirectory.SetLastWriteTime ( string  path,
DateTime  lastWriteTime 
)

Set last write time in local time

Parameters
path
lastWriteTime
void Vfs.IVfsDirectory.SetLastWriteTimeUtc ( string  path,
DateTime  lastWriteTimeUtc 
)

Set last write time in UTC

Parameters
path
lastWriteTimeUtc

The documentation for this interface was generated from the following file: