new File(target).getParent().toString() is redundant at line 281