看板 MATLAB 關於我們 聯絡資訊
請問 本來想寫一個連進ftp抓檔案的小程式。 但FTP server的網路時好時壞,可能載一半中斷 所以打算增加一個檔案大小比較的部分,確保有完整下載檔案。 但是剛剛測試後發現 用dir(ftp_obj.)只能取得檔名,但是bytes的變數都是空的。 包含其他 date, isdir, datenum等等都是空的... 請問有大大遇過類似的問題嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.116.57.230 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1664851337.A.C7E.html
sunev: 你可以看一下官方的說明文件 10/04 11:00
sunev: The dir function might return a structure array in 10/04 11:00
sunev: which the last four fields are empty or missing. When 10/04 11:01
sunev: dir returns a structure with missing information, it 10/04 11:01
sunev: might mean the SFTP or FTP object is not configured for 10/04 11:01
sunev: the operating system that is running on the SFTP or FTP 10/04 11:01
sunev: server. By default, an SFTP or FTP object is configured 10/04 11:01
sunev: to connect to a server running a UNIX operating system 10/04 11:02
venwhah: 了解,非常感謝 10/04 14:08