20 namespace Deveel.Data.Store {
23 return File.Exists(path);
27 return OpenFile(path, readOnly);
31 if (!FileExists(fileName))
32 throw new IOException(
string.Format(
"The file '{0}' does not exist: cannot be opened", fileName));
38 return CreateFile(path);
42 if (String.IsNullOrEmpty(fileName))
43 throw new ArgumentNullException(
"fileName");
45 if (FileExists(fileName))
46 throw new IOException(
string.Format(
"The file '{0}' already exists: cannot create.", fileName));
53 return FileExists(path);
57 return Path.Combine(path1, path2);
60 public bool RenameFile(
string sourcePath,
string destPath) {
61 File.Move(sourcePath, destPath);
62 return File.Exists(destPath);
66 return Directory.Exists(path);
70 Directory.CreateDirectory(path);
74 return new FileInfo(path).Length;
bool DeleteFile(string path)
string CombinePath(string path1, string path2)
long GetFileSize(string path)
bool FileExists(string path)
bool DirectoryExists(string path)
void CreateDirectory(string path)
LocalFile CreateFile(string fileName)
LocalFile OpenFile(string fileName, bool readOnly)
bool RenameFile(string sourcePath, string destPath)
IFile CreateFile(string path)
IFile OpenFile(string path, bool readOnly)