davsclaus commented on code in PR #16107:
URL: https://github.com/apache/camel/pull/16107#discussion_r1821044504


##########
components/camel-file/src/main/java/org/apache/camel/component/file/FileOperations.java:
##########
@@ -121,7 +127,14 @@ protected boolean buildDirectory(File dir, 
Set<PosixFilePermission> permissions,
             File base;
             // reusing absolute flag to handle relative and absolute paths
             if (absolute) {
-                base = new File("");
+                if (isWindows() && dir.getPath().startsWith(File.separator + 
File.separator)) {
+                    List<String> uncParts = Arrays.stream(parts).filter(s -> 
!s.isEmpty()).collect(Collectors.toList());

Review Comment:
   this code is a bit hacky. 
   Also can you show an UNC path example that currently fails.
   
   Also mind there is camel-smb for SMB file systems.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to