From e8c2c3687d23b078894fe039ed9306eb23d8ce54 Mon Sep 17 00:00:00 2001 From: William Vu Date: Wed, 25 Feb 2015 14:38:49 -0600 Subject: [PATCH] Replace "pathname" with "path" This always bothered me, since I usually say "path." --- lib/rex/proto/pjl/client.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/rex/proto/pjl/client.rb b/lib/rex/proto/pjl/client.rb index 268a0768ef..e1b39f5fb9 100644 --- a/lib/rex/proto/pjl/client.rb +++ b/lib/rex/proto/pjl/client.rb @@ -119,17 +119,17 @@ class Client # List a directory # - # @param pathname [String] Pathname + # @param path [String] Remote path # @param count [Fixnum] Number of entries to list # @return [String] Directory listing - def fsdirlist(pathname, count = COUNT_MAX) - if pathname !~ /^[0-2]:/ - raise ArgumentError, "Pathname must begin with 0:, 1:, or 2:" + def fsdirlist(path, count = COUNT_MAX) + if path !~ /^[0-2]:/ + raise ArgumentError, "Path must begin with 0:, 1:, or 2:" end listing = nil - @sock.put(%Q{#{FSDIRLIST} NAME = "#{pathname}" ENTRY=1 COUNT=#{count}\n}) + @sock.put(%Q{#{FSDIRLIST} NAME = "#{path}" ENTRY=1 COUNT=#{count}\n}) if @sock.get(DEFAULT_TIMEOUT) =~ /ENTRY=1\r?\n(.*?)\f/m listing = $1 @@ -140,17 +140,17 @@ class Client # Download a file # - # @param pathname [String] Pathname + # @param path [String] Remote path # @param size [Fixnum] Size of file # @return [String] File as a string - def fsupload(pathname, size = SIZE_MAX) - if pathname !~ /^[0-2]:/ - raise ArgumentError, "Pathname must begin with 0:, 1:, or 2:" + def fsupload(path, size = SIZE_MAX) + if path !~ /^[0-2]:/ + raise ArgumentError, "Path must begin with 0:, 1:, or 2:" end file = nil - @sock.put(%Q{#{FSUPLOAD} NAME = "#{pathname}" OFFSET=0 SIZE=#{size}\n}) + @sock.put(%Q{#{FSUPLOAD} NAME = "#{path}" OFFSET=0 SIZE=#{size}\n}) if @sock.get(DEFAULT_TIMEOUT) =~ /SIZE=\d+\r?\n(.*)\f/m file = $1