CmisSync.Lib.PathMatcher.PathMatcher.CreateLocalPaths C# (CSharp) Méthode

CreateLocalPaths() public méthode

Creates the corresponding local paths.
public CreateLocalPaths ( IDocument remoteDocument ) : List
remoteDocument IDocument Remote document.
Résultat List
        public List<string> CreateLocalPaths(IDocument remoteDocument)
        {
            if (!this.CanCreateLocalPath(remoteDocument)) {
                throw new ArgumentOutOfRangeException(string.Format("Given remote document with Paths \"{0}\" has no path in the remote target folder \"{1}\"", remoteDocument.Paths, this.RemoteTargetRootPath));
            }

            List<string> localPaths = new List<string>();
            foreach (string remotePath in remoteDocument.Paths)
            {
                try {
                    localPaths.Add(this.CreateLocalPath(remotePath));
                } catch (ArgumentException) {
                }
            }

            return localPaths;
        }