변경 감지 썸네일형 리스트형 [JAVA] WatchService 디렉토리가 포함하고 있는 파일들의 수정/추가/제거를 감지해보자 package monitor; import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardWatchEventKinds; import java.nio.file.WatchEvent; import java.nio.file.WatchKey; import java.nio.file.WatchService; public class Monitor { private static Path sharedDirectoryPath; private static WatchKey watchKey; private static WatchS.. 더보기 이전 1 다음