Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Dec 2, 2024
1 parent 3a785e3 commit fe5681d
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,17 +377,26 @@ public String marshall(String profileName) throws IOException
return profileXML;
}

private static boolean fastrtpsSHMAvailableOnWindows() {
private static boolean fastrtpsSHMAvailableOnWindows()
{
File file = new File("C:\\ProgramData\\eprosima\\fastrtps_interprocess\\test");

try {
if (file.getParentFile() != null) {
try
{
if (file.getParentFile() != null)
{
file.getParentFile().mkdirs();
}

return file.createNewFile();
} catch (IOException e) {
}
catch (IOException e)
{
return false;
}
finally
{
file.delete();
}
}
}

0 comments on commit fe5681d

Please sign in to comment.