Newer
Older
IoTP / src / main / java / info / istlab / IoTP / MyFile.java
@motoki miura motoki miura on 26 Feb 2023 421 bytes cmd not found?
package info.istlab.IoTP;

import java.io.File;

public class MyFile extends File {
    public MyFile(String pathname) {
        super(pathname);
    }

    public String toString() {
        String d = new String(App.workingDir+File.separator);
        if (d.contains("\\")){
            d = d.replace("\\","\\\\");
        }
        // System.out.println(d);
        return super.toString().replaceAll(d, "");
    }
}