|
@@ -7,7 +7,7 @@ import com.fdkankan.common.util.CmdUtils;
|
|
|
* @date 2024/1/12
|
|
|
*/
|
|
|
public class DownloadUtil {
|
|
|
- public final static String WGET_CMD = "wget -O @out -q @url";
|
|
|
+ public final static String WGET_CMD = "wget -N -O @out @url";
|
|
|
|
|
|
public static void downFile(String url, String path) throws Exception {
|
|
|
String cmd = WGET_CMD.replace("@out",path).replace("@url",url);
|