获取当前系统的文件分隔符
String outPath = parentFile.getCanonicalPath() + File.separator + "temp-" + fileName;// File.separator会根据当前的系统自动获得'/'或者'\\' |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
String outPath = parentFile.getCanonicalPath() + File.separator + "temp-" + fileName;// File.separator会根据当前的系统自动获得'/'或者'\\' |