|
@@ -20,7 +20,7 @@ public interface FileStorage {
|
|
|
|
|
|
/**保存文件到存储服务,siteId为1,转换接口用
|
|
|
* @param file 文件
|
|
|
- * @param path 全路径,包含根目录,不含协议名
|
|
|
+ * @param path 全路径,含协议名
|
|
|
* @return 返回路径
|
|
|
*/
|
|
|
public YunPathInfo saveFile(File file, String path);
|
|
@@ -33,4 +33,9 @@ public interface FileStorage {
|
|
|
*/
|
|
|
public YunHttpRequest getSignature(String siteId,FileStoragePathEnvInfo env,String md5);
|
|
|
|
|
|
+ /**删除文件
|
|
|
+ * @param path 全路径,含协议名
|
|
|
+ */
|
|
|
+ public void deleteFile(String path) ;
|
|
|
+
|
|
|
}
|