private void AssertNoConflictWithCurrentDirectory([NotNull] DirectoryEntry directory, [NotNull] AbsolutePath path) { if (currentDirectoryManager.IsAtOrAboveCurrentDirectory(directory)) { throw ErrorFactory.System.FileIsInUse(path.GetText()); } }
private void AssertNoConflictWithCurrentDirectory([NotNull] DirectoryEntry directory) { if (currentDirectoryManager.IsAtOrAboveCurrentDirectory(directory)) { throw ErrorFactory.System.FileIsInUse(); } }