13 lines
350 B
Java
13 lines
350 B
Java
package com.example.mir4updater.utils;
|
|
|
|
import java.io.File;
|
|
|
|
public class FileUtils {
|
|
public static String getFileNoExName(String filePath) {
|
|
|
|
String fileNameEx = filePath.substring(filePath.lastIndexOf(File.separator) + 1);
|
|
String fileName = fileNameEx.substring(0,fileNameEx.lastIndexOf("."));
|
|
return fileName;
|
|
}
|
|
}
|