admin
2021-07-28 c0269fcfa876b9c5cf309b2006462b4d09c5ef95
library-mine/src/com/lcjian/library/util/common/FileUtils.java
@@ -55,7 +55,7 @@
     */
    public static StringBuilder readFile(String filePath, String charsetName) {
        File file = new File(filePath);
        StringBuilder fileContent = new StringBuilder("");
        StringBuilder fileContent = new StringBuilder();
        if (file == null || !file.isFile()) {
            return null;
        }
@@ -131,7 +131,7 @@
        OutputStream o = null;
        try {
            o = new FileOutputStream(filePath);
            byte data[] = new byte[1024];
            byte[] data = new byte[1024];
            int length = -1;
            while ((length = stream.read(data)) != -1) {
                o.write(data, 0, length);
@@ -359,7 +359,7 @@
        }
        File folder = new File(folderName);
        return (folder.exists() && folder.isDirectory()) ? true : folder.mkdirs();
        return (folder.exists() && folder.isDirectory()) || folder.mkdirs();
    }
    /**