Exemplo n.º 1
0
        public void ParseUnix3Test()
        {
            var entry = FtpPlatform.ParseUnix("lrwxrwxrwx    1 0        0               4 Sep 03  2009 lib64 -> /lib", null);

            Assert.IsNotNull(entry);
            Assert.AreEqual(FtpEntryType.Link, entry.Type);
            Assert.AreEqual("lib64", entry.Name);
        }
Exemplo n.º 2
0
        public void ParseUnix2Test()
        {
            var entry = FtpPlatform.ParseUnix("drwxr-xr-x    4 nas-1    nas-1        4096 Jan 21 15:41 nas-1", null);

            Assert.IsNotNull(entry);
            Assert.AreEqual(FtpEntryType.Directory, entry.Type);
            Assert.AreEqual("nas-1", entry.Name);
        }