Home » Java » How do I get a network drive File System object in Java

How do I get a network drive File System object in Java

Posted by: admin July 12, 2018 Leave a comment

Questions:

I’m want to use the getUserPrincipalLookupService in the FileSystem class, but can only seem to get my personal FileSystem through FileSystems.getDefault().

My goal is to set the owner of a file (on the network drive) as a specific user on the network drive.

Answers: