Exemplo n.º 1
0
		public FileInformation(string fileName, string ownerName, string parentDirectory)
		{
			this.ownerName = ownerName;
			name = fileName;
			this.parentDirectory = parentDirectory;
			security = new Security();
			type = FILE;
		}
Exemplo n.º 2
0
		public DirectoryInformation(string parentDirectory, string directoryName, string ownerName)
		{
			this.parentDirectory = parentDirectory;
			name = directoryName;
			this.ownerName = ownerName;
			security = new Security();
			if (parentDirectory == null)
			{
				id = HashFunction.GenerateID(directoryName);
			}
			type = FOLDER;
		}