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

CanCreateRemotePath() public method

Determines whether this instance can create remote path for specified localFile.
public CanCreateRemotePath ( DirectoryInfo localDirectory ) : bool
localDirectory System.IO.DirectoryInfo Local directory.
return bool
        public bool CanCreateRemotePath(DirectoryInfo localDirectory)
        {
            return this.CanCreateRemotePath(localDirectory.FullName);
        }

Same methods

PathMatcher::CanCreateRemotePath ( FileInfo localFile ) : bool
PathMatcher::CanCreateRemotePath ( string localPath ) : bool

Usage Example

Ejemplo n.º 1
0
        public void RootFolderMatchesItselfWithoutTrailingDenominator()
        {
            var matcher = new PathMatcher(Path.GetTempPath().TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar.ToString(), "/");

            Assert.That(matcher.CanCreateRemotePath(Path.GetTempPath().TrimEnd(Path.DirectorySeparatorChar)), Is.True);
        }
All Usage Examples Of CmisSync.Lib.PathMatcher.PathMatcher::CanCreateRemotePath