/// <inheritdoc />
        public IFileSystemLink ToLink(string name = "")
        {
            var link = new FileSystemLink
            {
                Name        = string.IsNullOrWhiteSpace(name) ? Name : name,
                Id          = Id,
                Size        = Size,
                IsDirectory = IsDirectory
            };

            return(link);
        }
Beispiel #2
0
        /// <inheritdoc />
        public IFileSystemLink ToLink(string name = "")
        {
            var link = new FileSystemLink
            {
                Name        = string.IsNullOrWhiteSpace(name) ? Name : name,
                Id          = Id,
                Size        = Size,
                IsDirectory = IsDirectory
            };

            Console.WriteLine("my name " + Name);
            Console.WriteLine("link name " + link.Name);
            return(link);
        }