// Use the native-platform integration, if available
try {
PosixFiles posixFiles = net.rubygrapefruit.platform.Native.get(PosixFiles.class);
Symlink symlink = new NativePlatformBackedSymlink(posixFiles);
FileModeMutator chmod = new NativePlatformBackedChmod(posixFiles);
FileModeAccessor stat = new NativePlatformBackedStat(posixFiles);
return new GenericFileSystem(chmod, stat, symlink);
} catch (NativeIntegrationUnavailableException ex) {
LOGGER.debug("Native-platform file system integration is not available. Continuing with fallback.");
}