child.move(source,target, REPLACE_EXISTING);
I am trying to move files(childs) to different directory. It says move is undefined for file type File. Why is it outputting this? If it can't be fixed, what other methods exist?
child.move(source,target, REPLACE_EXISTING);
I am trying to move files(childs) to different directory. It says move is undefined for file type File. Why is it outputting this? If it can't be fixed, what other methods exist?
Why is it outputting this?
Because File has no such method...
If it can't be fixed, what other methods exist?
On File there is .renameTo() (but it's broken -- returns a boolean, cannot cross filesystem boundaries), but use Java 7's Files.move() instead which has none of File's drawbacks.