I\'m trying to list a directory\'s contents, and rename certain files.
public void run(String dirName) { try { File parDir = new File(dirName);
f.getName(); only returns the name of the folder, not the full path. So subbedName becomes a relative path file. Try something with f.getCanonicalPath() instead.
f.getName();
subbedName
f.getCanonicalPath()