2018-06-13

How to zip file in Mac without hidden files

對應 TrailHead : https://trailhead.salesforce.com/trails/force_com_dev_intermediate/modules/big_objects/units/big_objects_define_custom_big_objects

Mac 在打包檔案(zip)時會自動產生隱藏檔案,使用 terminal 語法進行打包的話就可以避免這個狀況發生,進而避免透過workbench上傳檔案時的「No package.xml found」錯誤。


語法:zip -r zippedfile.zip filefoder -x "*.DS_Store"

不過還是會遇到No package.xml found的錯誤....

沒有留言:

張貼留言

Check for typo before sending