Inheritance: FileSystemObject
Ejemplo n.º 1
0
		/// <summary>
		/// Creates a new SymbolicLink file system object.
		/// </summary>
		/// <param name="name">The name of the symbolic link.</param>
		/// <param name="path">The path of the symbolic link in the file system.</param>
		/// <param name="creationdate">The date the symbolic link was created.</param>
		/// <param name="target">The target path of the symbolic link.</param>
		public Directory(string name, string path, Directory parent, DateTime? creationdate)
		{
			this.Name = name;
			this.Path = path;
			this.Parent = parent;
			this.Type = FileSystemObjectType.Directory;
			if (creationdate.HasValue)
			{
				this.CreationDate = creationdate.Value;
			}
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Creates a new SymbolicLink file system object.
		/// </summary>
		/// <param name="name">The name of the symbolic link.</param>
		/// <param name="path">The path of the symbolic link in the file system.</param>
		/// <param name="creationdate">The date the symbolic link was created.</param>
		/// <param name="target">The target path of the symbolic link.</param>
		public SymbolicLink(string name, string path, Directory parent, DateTime? creationdate, string target)
		{
			this.Name = name;
			this.Path = path;
			this.Target = target;
			this.Parent = parent;
			this.Type = FileSystemObjectType.SymbolicLink;
			if (creationdate.HasValue)
			{
				this.CreationDate = creationdate.Value;
			}
		}
Ejemplo n.º 3
0
		/// <summary>
		/// Creates a new file system object of the File type.
		/// </summary>
		/// <param name="name">The name of the file.</param>
		/// <param name="path">The path to access the file.</param>
		/// <param name="creationdate">The date the file was created.</param>
		/// <param name="size">The size, in bytes, of the file.</param>
		public File(string name, string path, Directory parent, DateTime? creationdate, long? size)
		{

			this.Name = name;
			this.Path = path;
			this.Parent = parent;
			this.Type = FileSystemObjectType.File;
			if (size.HasValue)
			{
				this.Size = size.Value;
			}
			if (creationdate.HasValue)
			{
				this.CreationDate = creationdate.Value;
			}
		}
Ejemplo n.º 4
0
 public virtual List<FileSystemObject> GetChildren(Directory dir)
 {
     return null;
 }
Ejemplo n.º 5
0
 public virtual bool DeleteDirectory(Directory dir)
 {
     return false;
 }
Ejemplo n.º 6
0
 public virtual bool RenameDirectory(Directory dir, string name)
 {
     return false;
 }
Ejemplo n.º 7
0
 public virtual bool CreateDirectory(Directory dir)
 {
     return false;
 }
Ejemplo n.º 8
0
 public virtual bool UploadFile(string localdir, string localname, Directory remotedir, string remotename)
 {
     return false;
 }