finish plugin function

This commit is contained in:
2026-07-02 15:24:07 +07:00
parent ba7a43e637
commit 4793dc9c17
29 changed files with 2369 additions and 47 deletions
+18
View File
@@ -0,0 +1,18 @@
import java.net.URI;
import java.nio.file.Paths;
public class TestFileUri {
public static void main(String[] args) throws Exception {
String uploadPath = "/home/x79/sisvietnamvn_01/sisvietnamvn_main/uploads";
System.out.println("Using file:/ + uploadPath:");
try {
URI uri1 = new URI("file:/" + uploadPath + "/");
System.out.println(" Host: " + uri1.getHost());
System.out.println(" Path: " + uri1.getPath());
} catch(Exception e) { e.printStackTrace(); }
System.out.println("\nUsing Paths.get().toUri():");
URI uri2 = Paths.get(uploadPath).toUri();
System.out.println(" URI: " + uri2.toString());
}
}