Esempio n. 1
0
        private void HandlePacket(RealPathPacket packet)
        {
            logger.LogDebug("Processing RealPath SFTP packet, Id={Id}, Path='{Path}'.", packet.Id, packet.Path);

            var name = new NamePacket
            {
                Id = packet.Id
            };

            // TODO - properly set Longname - need that from file system, too.
            var realPath = fileSystem.GetRealPath(packet.Path);

            name.AddEntry(new NamePacket.Entry
            {
                Filename = realPath,
                Longname = realPath     // TODO - fix!
            });

            Send(name);
        }