Method: Sambala#mput
- Defined in:
- lib/sambala.rb
#mput(mask, queue = false) ⇒ Object
The mput method copy all files matching :mask in the current working directory on the local machine to the server. See man page for smbclient to get more on the details of operation
Parameters
-
mask = the file matching filter
-
queue = sets queue processing mode. Defaults to interactive mode when no option given.
Interactive Returns
array = [ booleanSuccess, mputResultMessage ]
Example
samba.mput('file*') # => [true, "putting file \\file_new.txt of size 1004 as file_new.txt (65.4 kb/s) (average 65.4 kb/s)\r\n"]
220 221 222 |
# File 'lib/sambala.rb', line 220 def mput(mask, queue=false) execute('mput' ,mask, queue) end |