summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation/provider/remote_directory.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/deprecation/provider/remote_directory.rb')
-rw-r--r--lib/chef/deprecation/provider/remote_directory.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/deprecation/provider/remote_directory.rb b/lib/chef/deprecation/provider/remote_directory.rb
index cc8026ec55..ece5ca0945 100644
--- a/lib/chef/deprecation/provider/remote_directory.rb
+++ b/lib/chef/deprecation/provider/remote_directory.rb
@@ -33,13 +33,13 @@ class Chef
# List all excluding . and ..
def ls(path)
- files = Dir.glob(::File.join(Chef::Util::PathHelper.escape_glob(path), '**', '*'),
+ files = Dir.glob(::File.join(Chef::Util::PathHelper.escape_glob(path), "**", "*"),
::File::FNM_DOTMATCH)
# Remove current directory and previous directory
files = files.reject do |name|
basename = Pathname.new(name).basename().to_s
- ['.', '..'].include?(basename)
+ [".", ".."].include?(basename)
end
# Clean all the paths... this is required because of the join