Skip to content

[#2079] use platform dependant compare for path#1094

Closed
flybyray wants to merge 1 commit intoplayframework:1.4.xfrom
flybyray:lighthouse-2079-patch
Closed

[#2079] use platform dependant compare for path#1094
flybyray wants to merge 1 commit intoplayframework:1.4.xfrom
flybyray:lighthouse-2079-patch

Conversation

@flybyray
Copy link
Contributor

@asolntsev asolntsev self-requested a review March 6, 2017 23:42
@asolntsev
Copy link
Contributor

@xael-fry I suggest to merge this PR.

@asolntsev asolntsev added this to the 1.5.0 milestone Mar 6, 2017
*/
public static void copy(File from, File to) {
if (from.getAbsolutePath().equals(to.getAbsolutePath())) {
if (0==from.toPath().compareTo(to.toPath())) {
Copy link
Member

@xael-fry xael-fry Mar 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can you be sure that getPath will compare the same file: ex with
File a = new File("C:\temp\TEST.TXT");
File b = new File("C:\temp\.\test.txt");
File should be detect as the are the same...
I will work on another solution + tests

@xael-fry
Copy link
Member

Closed in favor of #1120

@xael-fry xael-fry closed this Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants