1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 19:47:58 +01:00

Fix file path separator

This commit is contained in:
vanitasvitae 2017-08-06 00:27:51 +02:00
parent 5589143c99
commit bee9ef0f08
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -59,7 +59,7 @@ public class LocalFile extends AbstractJingleFileTransferFile {
@Override
public String getName() {
String path = file.getAbsolutePath();
return path.substring(path.lastIndexOf(File.pathSeparatorChar) + 1);
return path.substring(path.lastIndexOf(File.separator) + 1);
}
@Override