Selaa lähdekoodia

移除无关代码

tianboguang 3 vuotta sitten
vanhempi
commit
71314fe5c2

+ 0 - 7
4dkankan-utils-fyun-oss/src/main/java/com/fdkankan/fyun/oss/OssFileService.java

@@ -172,13 +172,6 @@ public class OssFileService implements FYunFileService {
     }
 
     @Override
-    public String getContentType(String remoteFolderPath) throws Exception {
-        FileNameMap fileNameMap = URLConnection.getFileNameMap();
-        String contentType = fileNameMap.getContentTypeFor(remoteFolderPath);
-        return contentType;
-    }
-
-    @Override
     public List<String> listRemoteFiles(String bucket, String sourcePath) throws Exception {
         return listRemoteFiles(bucket, sourcePath, true);
     }

+ 0 - 8
4dkankan-utils-fyun-parent/src/main/java/com/fdkankan/fyun/face/FYunFileService.java

@@ -108,14 +108,6 @@ public interface FYunFileService {
 
 
 	/**
-	 * 获取文件类型
-	 * @param remoteFolderPath 服务器文件路径
-	 * @return
-	 * @throws Exception
-	 */
-	String getContentType(String remoteFolderPath) throws Exception;
-
-	/**
 	 * 获取文件列表
 	 * @param bucket
 	 * @param sourcePath