This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Define "FileSystem" on OS/2 used with "WatchService"  RSS feed

 
G Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need monitor the file changes of a folder on OS/2 system. I've been trying to use the new "WatchService" in Java 7, anyone knows how to do it?
(the "getDefaultSystem" won't work!)

Thanks!
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, how exactly does it not work? You're using, what, FileSystems.getDefault()? Or something else? And does it throw an exception of some sort? Return null? Or what?

You might try calling FileSystemProvider.installedProviders() to see what it returns, and then get a FileSystem from one of the providers.
 
G Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Mike! I will give it a try tomorrow!

best!

glenn
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!