CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.PathIsApplicable C# (CSharp) Метод

PathIsApplicable() приватный Метод

Check whether a path is relevant for the current synchronized folder.
private PathIsApplicable ( string remotePath ) : bool
remotePath string
Результат bool
            private bool PathIsApplicable(string remotePath)
            {
                // Ignore the change if not in a synchronized folder.
                if ( ! remotePath.StartsWith(this.remoteFolderPath))
                {
                    Logger.Info("Ignore change as it is not in the synchronized folder's path: " + remotePath);
                    return false;
                }

                // Ignore if configured to be ignored.
                if (this.repoInfo.isPathIgnored(remotePath))
                {
                    Logger.Info("Ignore change as it is in a path configured to be ignored: " + remotePath);
                    return false;
                }

                // In other case, the change is probably applicable.
                return true;
            }
        }