MCPcopy Create free account
hub / github.com/annmuor/jnode / getFilePath

Method getFilePath

jnode-core/src/jnode/ftn/FtnTools.java:1628–1639  ·  view source on GitHub ↗
(String area, String attach)

Source from the content-addressed store, hash-verified

1626 }
1627
1628 public static String getFilePath(String area, String attach) {
1629 String areaPath = FtnTosser.getFileechoPath() + File.separator + area;
1630 File f = new File(areaPath);
1631 if (!f.isDirectory()) {
1632 if (f.exists()) {
1633 f.renameTo(new File(areaPath + "." + generate8d()));
1634 f = new File(areaPath);
1635 }
1636 f.mkdirs();
1637 }
1638 return (f.getAbsolutePath() + File.separator + attach).toLowerCase();
1639 }
1640
1641 public static String md5(String protocolPassword) {
1642 MessageDigest mdEnc;

Callers 2

hatchFileMethod · 0.95
tossInboundDirectoryMethod · 0.80

Calls 3

getFileechoPathMethod · 0.95
generate8dMethod · 0.95
existsMethod · 0.80

Tested by

no test coverage detected