public long fileLength(String name) throws IOException {ensureOpen();if (pendingDeletes.contains(name)) {throw new NoSuchFileException("file \"" + name + "\" is pending delete");}return Files.size(directory.resolve(name));}
public override long FileLength(string name){EnsureOpen();FileInfo file = new FileInfo(Path.Combine(m_directory.FullName, name));long len = file.Length;if (len == 0 && !file.Exists){throw new FileNotFoundException(name);}else{return len;}}