file_transfer 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/file_transfer/version.rb +1 -1
- data/lib/file_transfer.rb +7 -0
- metadata +1 -1
data/lib/file_transfer.rb
CHANGED
@@ -71,6 +71,13 @@ module FileTransfer
|
|
71
71
|
result
|
72
72
|
end
|
73
73
|
|
74
|
+
def self.rename(type, options, from_path, to_path)
|
75
|
+
handler = FileTransferHandler.new type, options
|
76
|
+
result = handler.rename from_path, to_path
|
77
|
+
handler.close
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
74
81
|
def self.list(type, options, path)
|
75
82
|
handler = FileTransferHandler.new type, options
|
76
83
|
result = handler.list path
|