S037 samba cifs - Upload a file throught CIFS

##############################;
# Upload files throught CIFS #;
##############################;

#Get the file list from a directory;
json load "list" (file dir_list "/Users/jimmitry/Desktop");

#Parse the file list;
json parse_array "list" "/" "[filename]" {

	#Upload with SCP;
	cifs put 
		(concat "/Users/jimmitry/Desktop/" [filename]) 
		[filename] 
		{cm get "demo_cm_cifs";};

};


MentDB © 2012 - 2020 - Legal Notice