From b20228721e1a0ced9de9423b9bc9a835421f136f Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 22 Nov 2011 15:50:12 +0000 Subject: [PATCH] Rename protected_dir() to marked_stow_dir(). --- lib/Stow.pm.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in index 4bfffe9..9b8367f 100755 --- a/lib/Stow.pm.in +++ b/lib/Stow.pm.in @@ -473,7 +473,7 @@ sub should_skip_target_which_is_stow_dir { return 1; } - if ($self->protected_dir($target)) { + if ($self->marked_stow_dir($target)) { debug(2, "Skipping protected directory $target"); return 1; } @@ -482,7 +482,7 @@ sub should_skip_target_which_is_stow_dir { return 0; } -sub protected_dir { +sub marked_stow_dir { my $self = shift; my ($target) = @_; for my $f (".stow", ".nonstow") { @@ -775,7 +775,7 @@ sub find_stowed_path { my $dir = ''; for my $part (split m{/+}, $path) { $dir = join_paths($dir, $part); - return $path if $self->protected_dir($dir); + return $path if $self->marked_stow_dir($dir); } # Compare with $self->{stow_path}