Exemplo n.º 1
0
        private static object RunMkdirAndReturnExitCode(MkdirOptions opts)
        {
            Console.WriteLine("CreateDirectory(" + opts.Directory + ", " + opts.IP + ")");

            try
            {
                bool res = USBLAN.CreateDirectory(opts.Directory, opts.IP);
                if (!res)
                {
                    Console.WriteLine("An error occurred.");
                    return(1);
                }
            }
            catch (Exception e)
            {
                PrintException(e);
                return(1);
            }

            Console.WriteLine("directory created.");
            return(0);
        }
Exemplo n.º 2
0
        private static void TestCreateDirectory()
        {
            bool result = USBLAN.CreateDirectory("/My Documents/testdir");

            Console.WriteLine("response: " + result);
        }