1
我想要的文件夾從我的FTP服務器複製到本地PC用下面的代碼:命令'上persmissions remote_directory`失敗
src = "http://moo-repo.wdf.ETC.corp:8080/static/lit/ETC/MDMInternalTools/"
remote_directory "c:\\Users\\Desktop" do
source src
rights :full_control, 'everyone'
action :create
end
有時失敗,出現錯誤:
FileNotFound: cookbook litc-mdmfiles has no directory
files/default/http://moo
repo.wdf.ETC.corp:8080/static/lit/ETC/MDMInternalTools/
有時我得到這個:
Chef::Exceptions::InsufficientPermissions: Cannot create
remote_directory[C:\Users\public\Desktop
可有人請指教?
觀察文件路徑中的引號和反斜槓,特別是在與Windows交談時。 – Meier