public FileInformation(string fileName, string ownerName, string parentDirectory) { this.ownerName = ownerName; name = fileName; this.parentDirectory = parentDirectory; security = new Security(); type = FILE; }
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; }