예제 #1
0
        public void Upload(string localPath, string absolutePath)
        {
            string drivePath =
                PathNormalizer.Normalize(absolutePath).Replace(
                    PathNormalizer.Normalize(localPath), String.Empty);

            var item = drive.CreateNewFile(drivePath);

            //ModLog.SetFileLastWriteTime(absolutePath, new DateTime(DateTime.Now.Ticks + 10000));
            this.SyncWithState(item, SynchronizingItem.SyncState.Uploading);
        }