com.groupbyinc.flux.common.io.FileSystemUtils.class Maven / Gradle / Ivy
???? 4 -com/groupbyinc/flux/common/io/FileSystemUtils java/lang/Object FileSystemUtils.java $java/nio/file/DirectoryStream$Filter java/nio/file/DirectoryStream Filter %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup $assertionsDisabled Z ()V
this /Lcom/groupbyinc/flux/common/io/FileSystemUtils; exists ([Ljava/nio/file/Path;)Z [Ljava/nio/file/Path; java/nio/file/LinkOption java/nio/file/Files 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
! file Ljava/nio/file/Path; files isHidden (Ljava/nio/file/Path;)Z java/nio/file/Path ( getFileName ()Ljava/nio/file/Path; * + ) , toString ()Ljava/lang/String; . / ) 0 . 2 java/lang/String 4
startsWith (Ljava/lang/String;)Z 6 7
5 8 path fileName append ?(Ljava/nio/file/Path;Ljava/nio/file/Path;I)Ljava/nio/file/Path; iterator ()Ljava/util/Iterator; > ? ) @ java/util/Iterator B hasNext ()Z D E C F next ()Ljava/lang/Object; H I C J resolve ((Ljava/lang/String;)Ljava/nio/file/Path; L M ) N subPath base strip I deleteSubDirectories ([Ljava/nio/file/Path;)V java/io/IOException V java/lang/Throwable X newDirectoryStream 5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream; Z [
\ @ isDirectory _
` 5com/groupbyinc/flux/common/apache/lucene/util/IOUtils b rm d U
c e close g h
addSuppressed (Ljava/lang/Throwable;)V j k
Y l stream 5Ljava/nio/file/DirectoryStream; Ljava/nio/file/DirectoryStream; paths isAccessibleDirectory 8(Ljava/nio/file/Path;Lorg/apache/logging/log4j/Logger;)Z t java/lang/AssertionError v
w [{}] directory does not exist. y toAbsolutePath { + ) | org/apache/logging/log4j/Logger ~ debug '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? &[{}] should be a directory but is not. ?
isReadable ? '
? [{}] directory is not readable. ? directory logger !Lorg/apache/logging/log4j/Logger; openFileURLStream %(Ljava/net/URL;)Ljava/io/InputStream; .Lcom/groupbyinc/flux/common/SuppressForbidden; reason *Will only open url streams for local files java/net/URL ? getProtocol ? /
? ? # equals (Ljava/lang/Object;)Z ? ?
5 ? jar ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? Invalid protocol [ ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; <