info("🔼 上傳中..."); if (!$disk->put($testFile, $testContent)) { return $this->error("❌ 上傳失敗"); } // 嘗試讀取 $this->info("📥 下載檢查..."); $content = $disk->get($testFile); if ($content !== $testContent) { return $this->error("❌ 檔案內容不符"); } // 嘗試刪除 $this->info("🗑️ 刪除測試檔案..."); if (!$disk->delete($testFile)) { return $this->error("❌ 刪除失敗"); } $this->info("✅ FTP 測試成功!"); } }