Ejemplo n.º 1
0
        public static void Main (string [] args)
        {

            Console.WriteLine (File.GetLastWriteTimeUtc ("/home/hbons/test.txt").GetHashCode ());
            Environment.Exit (0);




            User user = new User {
                Name  = "Hylke Bons",
                Email = "*****@*****.**"
            };

            Index index = new Index ("/Users/hbons/SparkleShare/Rainbows/.sparkleshare",
                "/Users/hbons/SparkleShare/Rainbows", user);

            //index.Status ();
            //index.Commit ();


            //Index.Clone (new Uri ("ssh://[email protected]/home/sites/webhosting/bomahy/bomahy/test.sparkleshare"),
              //  "/home/hbons/TEST");

            TransferManager t = new TransferManager ("/home/hbons/TEST/db",
                new Uri ("ssh://[email protected]/home/sites/webhosting/bomahy/bomahy/test.sparkleshare"));

            t.UploadObject ("12124");
            t.UploadObject ("12125");
            t.UploadObject ("12126");
            t.UploadObject ("12127");
            t.UploadObject ("12128");
            t.UploadObject ("12129");
            t.UploadObject ("12130");
            t.UploadObject ("12131");
            t.UploadObject ("12132");
            t.UploadObject ("12133");
            t.UploadObject ("12134");
            t.UploadObject ("12135");
            t.UploadObject ("12136");
            t.UploadObject ("12137");
            t.UploadObject ("12138");
            t.UploadObject ("12139");
            t.UploadObject ("12140");
            t.DownloadObject ("12126");


        }
Ejemplo n.º 2
0
        public static void Main(string [] args)
        {
            Console.WriteLine(File.GetLastWriteTimeUtc("/home/hbons/test.txt").GetHashCode());
            Environment.Exit(0);



            User user = new User {
                Name  = "Hylke Bons",
                Email = "*****@*****.**"
            };

            Index index = new Index("/Users/hbons/SparkleShare/Rainbows/.sparkleshare",
                                    "/Users/hbons/SparkleShare/Rainbows", user);

            //index.Status ();
            //index.Commit ();


            //Index.Clone (new Uri ("ssh://[email protected]/home/sites/webhosting/bomahy/bomahy/test.sparkleshare"),
            //  "/home/hbons/TEST");

            TransferManager t = new TransferManager("/home/hbons/TEST/db",
                                                    new Uri("ssh://[email protected]/home/sites/webhosting/bomahy/bomahy/test.sparkleshare"));

            t.UploadObject("12124");
            t.UploadObject("12125");
            t.UploadObject("12126");
            t.UploadObject("12127");
            t.UploadObject("12128");
            t.UploadObject("12129");
            t.UploadObject("12130");
            t.UploadObject("12131");
            t.UploadObject("12132");
            t.UploadObject("12133");
            t.UploadObject("12134");
            t.UploadObject("12135");
            t.UploadObject("12136");
            t.UploadObject("12137");
            t.UploadObject("12138");
            t.UploadObject("12139");
            t.UploadObject("12140");
            t.DownloadObject("12126");
        }