in paimon-python-java-bridge/src/main/java/org/apache/paimon/python/FileLock.java [41:52]
public FileLock(String fullPath) {
Preconditions.checkNotNull(fullPath, "fullPath should not be null");
Path path = Paths.get(fullPath);
String normalizedFileName = normalizeFileName(path.getFileName().toString());
if (normalizedFileName.isEmpty()) {
throw new IllegalArgumentException("There are no legal characters in the file name");
}
this.file =
path.getParent() == null
? new File(TEMP_DIR, normalizedFileName)
: new File(path.getParent().toString(), normalizedFileName);
}