CmisSync.Lib.PathRepresentationConverter.LocalToRemote C# (CSharp) Метод

LocalToRemote() статический публичный Метод

static public LocalToRemote ( string localPath ) : string
localPath string
Результат string
        static public string LocalToRemote(string localPath)
        {
            return PathConverter.LocalToRemote(localPath);
        }

Usage Example

Пример #1
0
        /// <summary></summary>
        /// <param name="remotePath"></param>
        /// <param name="repoInfo"></param>
        public RemotePathSyncItem(string remotePath, RepoInfo repoInfo)
        {
            this.localRoot  = repoInfo.TargetDirectory;
            this.remoteRoot = PathRepresentationConverter.LocalToRemote(repoInfo.RemotePath);

            this.remotePath = remotePath;
            if (remotePath.StartsWith(this.remoteRoot))
            {
                this.remotePath = remotePath.Substring(this.remoteRoot.Length).TrimStart(CmisUtils.CMIS_FILE_SEPARATOR);
            }
            this.localPath = PathRepresentationConverter.RemoteToLocal(this.remotePath);
        }
All Usage Examples Of CmisSync.Lib.PathRepresentationConverter::LocalToRemote