Beispiel #1
0
        public FtpFile AddChild(string name, long size, DateTimeOffset modified)
        {
            if (!_children.ContainsKey(name))
            {
                _children[name] = new FtpFile(name, size, modified);
            }

            return(_children[name]);
        }
Beispiel #2
0
        public FtpFile AddChild(string name)
        {
            var key = $"{name}_dir";

            if (!_children.ContainsKey(key))
            {
                _children[key] = new FtpFile(name);
            }
            return(_children[key]);
        }