Stat() public method

public Stat ( string path, Action callback = null ) : void
path string
callback Action
return void
Ejemplo n.º 1
0
        public void StatFile()
        {
            const string data = "test string";

            var handle = new WriteFileHandle(data);
            handle.OpenWrite(TestFilePath);

            Loop.Current.Run();

            var handle2 = new Filesystem();
            handle2.Stat(TestFilePath, (args) => {
                Assert.AreEqual(data.Length, args.Stat.st_size);
            });

            Loop.Current.Run();
        }