CmisSync.Lib.PathMatcher.PathMatcher.CreateRemotePath C# (CSharp) Method

CreateRemotePath() public method

Creates the remote pat.
public CreateRemotePath ( DirectoryInfo localDirectory ) : string
localDirectory System.IO.DirectoryInfo Local directory.
return string
        public string CreateRemotePath(DirectoryInfo localDirectory)
        {
            return this.CreateRemotePath(localDirectory.FullName);
        }

Same methods

PathMatcher::CreateRemotePath ( FileInfo localFile ) : string
PathMatcher::CreateRemotePath ( string localPath ) : string

Usage Example

Esempio n. 1
0
        public void CrossPathCreatingTest()
        {
            var matcher = new PathMatcher(this.localpath, this.remotepath);
            string result = matcher.CreateRemotePath(this.localpath);
            this.AssertPathEqual(this.remotepath, result);
            result = matcher.CreateLocalPath(result);
            this.AssertPathEqual(this.localpath, result);

            result = matcher.CreateRemotePath(Path.Combine(this.localpath, "sub"));
            result = matcher.CreateLocalPath(result);
            this.AssertPathEqual(Path.Combine(this.localpath, "sub"), result);

            result = matcher.CreateLocalPath(this.remotepath + "/sub");
            result = matcher.CreateRemotePath(result);
            this.AssertPathEqual(this.remotepath + "/sub", result);
        }
All Usage Examples Of CmisSync.Lib.PathMatcher.PathMatcher::CreateRemotePath