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 isDesktopServicesStore 7com/groupbyinc/flux/common/apache/lucene/util/Constants = MAC_OS_X ? > @
isRegularFile B
C .DS_Store E equals (Ljava/lang/Object;)Z G H
5 I append ?(Ljava/nio/file/Path;Ljava/nio/file/Path;I)Ljava/nio/file/Path; iterator ()Ljava/util/Iterator; M N ) O java/util/Iterator Q hasNext ()Z S T R U next ()Ljava/lang/Object; W X R Y resolve ((Ljava/lang/String;)Ljava/nio/file/Path; [ \ ) ] subPath base strip I deleteSubDirectories ([Ljava/nio/file/Path;)V java/io/IOException e java/lang/Throwable g newDirectoryStream 5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream; i j
k O isDirectory n
o ,com/groupbyinc/flux/core/internal/io/IOUtils q rm s d
r t $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V v w
x stream 5Ljava/nio/file/DirectoryStream; Ljava/nio/file/DirectoryStream; paths isAccessibleDirectory 8(Ljava/nio/file/Path;Lorg/apache/logging/log4j/Logger;)Z ? java/lang/AssertionError ?
? [{}] directory does not exist. ? 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 ? /
? ? # jar ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? Invalid protocol [ ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; K ?
? ? ], must be [file] or [jar] ?
? 0 (Ljava/lang/String;)V ?
? ? getHost ? /
? ? "com/groupbyinc/flux/common/Strings ? isEmpty (Ljava/lang/CharSequence;)Z ? ?
? ? URL cannot have host. Found: [ ? (C)Ljava/lang/StringBuilder; K ?
? ? getPort ()I ? ?
? ? URL cannot have port. Found: [ ? (I)Ljava/lang/StringBuilder; K ?
? ?
openStream ()Ljava/io/InputStream; ? ?
? ? url Ljava/net/URL; protocol Ljava/lang/String; Q(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)[Ljava/nio/file/Path; [(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream; i ?
? toArray 6(Ljava/nio/file/DirectoryStream;)[Ljava/nio/file/Path; ? ?
? from filter ; &Ljava/nio/file/DirectoryStream$Filter; +(Ljava/nio/file/Path;)[Ljava/nio/file/Path; =(Ljava/nio/file/Path;Ljava/lang/String;)[Ljava/nio/file/Path; G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream; i ?
? glob spliterator ()Ljava/util/Spliterator; ? ? ? java/util/stream/StreamSupport ? 3(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream; z ?
? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? (I)Ljava/lang/Object; ? lambda$toArray$0 (I)[Ljava/nio/file/Path; ? ?
? ? ? apply "()Ljava/util/function/IntFunction; java/util/stream/Stream 5(Ljava/util/function/IntFunction;)[Ljava/lang/Object; ? length java/lang/AutoCloseable
close
addSuppressed (Ljava/lang/Throwable;)V
h x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; java/lang/Class desiredAssertionStatus T
Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions RuntimeInvisibleAnnotations Signature g(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)[Ljava/nio/file/Path; L(Ljava/nio/file/DirectoryStream;)[Ljava/nio/file/Path; BootstrapMethods
SourceFile InnerClasses 1 / *? ? ) ? '*L+?=>? +2:? ? "? ?????? # $ ' % / 0 1 / % 4 ? ? &