본문 바로가기

워로디스

검색하기
워로디스
프로필사진 워로디스

  • 분류 전체보기 (52) N
    • Data Science (1)
    • 역사 (1)
      • 한국사 (1)
    • 개발 (50) N
      • Rust (2)
      • Java (3)
      • Kotlin (1)
      • Python (6) N
      • TypeScript (1)
      • JavaScript (2)
      • 2D 그래픽스 (1)
      • 가상화 (6)
      • curl (3)
      • webpack (2)
      • Ollama (5)
      • Tauri (2)
      • Vim (3)
      • 파일관리 (2)
      • PowerShell (2)
      • VSCode (2)
      • Canvas (1)
      • mdx (1)
      • CSS (1)
      • 데이터직렬화형식 (3)
      • Vite (1)
    • 감상 (0)
    • 창작 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Tags
  • Webpack
  • io
  • Java
  • json
  • Vite
  • tauri
  • yaml
  • docker
  • curl
  • ndjson
  • uv init
  • vim
  • secure context
  • Python Install Manager
  • cross-origin isolated
  • podman
  • Docker Compose
  • SharedArrayBuffer
  • 이미지
  • FileChannel
  • vscode
  • uv pin
  • PowerShell
  • Python
  • Ollama
  • UV
  • Typescript
  • RandomAccessFile
  • json schema
  • cli
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록File (1)

워로디스

Java IO 절대경로 여부 확인

Java에서 경로가 절대경로인지 확인하려면 java.io.File 또는 java.nio.file.Path의 메서드를 사용할 수 있습니다. 1. File.isAbsolute() 사용import java.io.File;public class Main { public static void main(String[] args) { File file1 = new File("/usr/local/bin"); // UNIX-style 절대경로 File file2 = new File("data/input.txt"); // 상대경로 System.out.println(file1.isAbsolute()); // true System.out.println(file2.is..

개발/Java 2026. 2. 4. 22:00
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바