![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.MoreFiles.class Maven / Gradle / Ivy
???? 4
w
v
?
v
? ?
!"# $
%
v&'
(
?)
*+ ?,
-. J/ 012
3+4
#-
56
78
?9
+:
;<=
+>
??
@A
BC
DEF
GH LI LJ LK
LM
9
N
9O
9P
9Q
R LST LQ
cU
cV
cW
vXYZ
G[\
]^_
v`
va
vb ?c
vd
ve
vf
vg Jh J Ji Jj
vk Jl ?m ?n
vo
p ?l Lq Lrst
uv
wx yz{|}
hR~
j
?
v?? ?l
G ??
??
1? L?
c??? PathByteSink InnerClasses PathByteSource ()V Code LineNumberTable LocalVariableTable this Lcom/google/common/io/MoreFiles; asByteSource R(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Lcom/google/common/io/ByteSource; path Ljava/nio/file/Path; options [Ljava/nio/file/OpenOption; MethodParameters
asByteSink P(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Lcom/google/common/io/ByteSink; asCharSource l(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Lcom/google/common/io/CharSource; charset Ljava/nio/charset/Charset;
asCharSink j(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Lcom/google/common/io/CharSink; listFiles ?(Ljava/nio/file/Path;)Lcom/google/common/collect/ImmutableList; stream Ljava/nio/file/DirectoryStream; e *Ljava/nio/file/DirectoryIteratorException; dir LocalVariableTypeTable 5Ljava/nio/file/DirectoryStream;
StackMapTable??
Exceptions Signature U(Ljava/nio/file/Path;)Lcom/google/common/collect/ImmutableList;
fileTraverser %()Lcom/google/common/graph/Traverser; ;()Lcom/google/common/graph/Traverser; fileTreeChildren *(Ljava/nio/file/Path;)Ljava/lang/Iterable; Ljava/io/IOException; @(Ljava/nio/file/Path;)Ljava/lang/Iterable; isDirectory ?([Ljava/nio/file/LinkOption;)Lcom/google/common/base/Predicate; [Ljava/nio/file/LinkOption; optionsCopy U([Ljava/nio/file/LinkOption;)Lcom/google/common/base/Predicate; W(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z %Ljava/nio/file/SecureDirectoryStream; name ;Ljava/nio/file/SecureDirectoryStream; m(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
isRegularFile equal +(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z path1 path2 source1 !Lcom/google/common/io/ByteSource; source2 len1 J len2? touch (Ljava/nio/file/Path;)V #Ljava/nio/file/NoSuchFileException; createParentDirectories ?(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V attrs ([Ljava/nio/file/attribute/FileAttribute; normalizedAbsolutePath parent +[Ljava/nio/file/attribute/FileAttribute<*>; B(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute<*>;)V getFileExtension ((Ljava/nio/file/Path;)Ljava/lang/String; fileName Ljava/lang/String; dotIndex I getNameWithoutExtension deleteRecursively D(Ljava/nio/file/Path;[Lcom/google/common/io/RecursiveDeleteOption;)V sdsSupported Z -[Lcom/google/common/io/RecursiveDeleteOption;
parentPath
exceptions Ljava/util/Collection; -Ljava/util/Collection;? ? deleteDirectoryContents sds deleteRecursivelySecure Q(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;)Ljava/util/Collection; childDir ~(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;)Ljava/util/Collection; RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; deleteDirectoryContentsSecure =(Ljava/nio/file/SecureDirectoryStream;)Ljava/util/Collection;? j(Ljava/nio/file/SecureDirectoryStream;)Ljava/util/Collection; deleteRecursivelyInsecure ,(Ljava/nio/file/Path;)Ljava/util/Collection; C(Ljava/nio/file/Path;)Ljava/util/Collection; deleteDirectoryContentsInsecure 7(Ljava/nio/file/DirectoryStream;)Ljava/util/Collection; entry d(Ljava/nio/file/DirectoryStream;)Ljava/util/Collection;
getParentPath *(Ljava/nio/file/Path;)Ljava/nio/file/Path; checkAllowsInsecure addException C(Ljava/util/Collection;Ljava/io/IOException;)Ljava/util/Collection; q(Ljava/util/Collection;Ljava/io/IOException;)Ljava/util/Collection; "RuntimeVisibleParameterAnnotations concat D(Ljava/util/Collection;Ljava/util/Collection;)Ljava/util/Collection; other ?(Ljava/util/Collection;Ljava/util/Collection;)Ljava/util/Collection; throwDeleteFailed -(Ljava/nio/file/Path;Ljava/util/Collection;)V pathNotFound deleteFailed #Ljava/nio/file/FileSystemException; D(Ljava/nio/file/Path;Ljava/util/Collection;)V O(Ljava/nio/file/Path;Ljava/util/Collection;)Ljava/nio/file/NoSuchFileException; exception noSuchFileException
exceptionFile pathResolvedFromParent f(Ljava/nio/file/Path;Ljava/util/Collection;)Ljava/nio/file/NoSuchFileException;
SourceFile MoreFiles.java 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; { | -com/google/common/io/MoreFiles$PathByteSource {? +com/google/common/io/MoreFiles$PathByteSink ? ? ?? ? ?? ???????? | java/lang/Throwable?? (java/nio/file/DirectoryIteratorException?? BootstrapMethods??? ?????? java/nio/file/LinkOption?? ?? ? ? java/io/IOException {??? ??? com/google/common/io/MoreFiles$1 {? .java/nio/file/attribute/BasicFileAttributeView????? ?? ? com/google/common/io/MoreFiles$2???? ? java/nio/file/OpenOption??????? java/lang/Long???????????? !java/nio/file/NoSuchFileException %java/nio/file/attribute/FileAttribute?? (java/nio/file/FileAlreadyExistsException???????? java/lang/StringBuilder 'Unable to create parent directories of ?????? {??? ?????? ? ? !java/nio/file/FileSystemException can't delete recursively {? #java/nio/file/SecureDirectoryStream??? java/nio/file/Path ? ? ? ? ? ??? ? ? ? ? ? ? ? ??????? ? ??????? ? ?? ????? . java/lang/String???????????? 5com/google/common/io/InsecureRecursiveDeleteException java/util/ArrayList?? ? ? Ifailed to delete one or more files; see suppressed exceptions for details??????? ?? com/google/common/io/MoreFiles java/lang/Object java/nio/file/DirectoryStream 'com/google/common/collect/ImmutableList com/google/common/io/ByteSource java/util/Collection java/util/Iterator T(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;Lcom/google/common/io/MoreFiles$1;)V =(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource; com/google/common/io/ByteSink ;(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSink; java/nio/file/Files newDirectoryStream 5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream; copyOf ?(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; close
addSuppressed (Ljava/lang/Throwable;)V getCause ()Ljava/io/IOException;
((Ljava/lang/Object;)Ljava/lang/Iterable;
v
successors .()Lcom/google/common/graph/SuccessorsFunction; !com/google/common/graph/Traverser forTree Q(Lcom/google/common/graph/SuccessorsFunction;)Lcom/google/common/graph/Traverser; NOFOLLOW_LINKS Ljava/nio/file/LinkOption; 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z (Ljava/io/IOException;)V of +()Lcom/google/common/collect/ImmutableList; clone ()Ljava/lang/Object; ([Ljava/nio/file/LinkOption;)V getFileAttributeView k(Ljava/lang/Object;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileAttributeView; readAttributes /()Ljava/nio/file/attribute/BasicFileAttributes; +java/nio/file/attribute/BasicFileAttributes ()Z $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
isSameFile sizeIfKnown #()Lcom/google/common/base/Optional; valueOf (J)Ljava/lang/Long; com/google/common/base/Optional or longValue ()J
contentEquals $(Lcom/google/common/io/ByteSource;)Z java/lang/System currentTimeMillis java/nio/file/attribute/FileTime
fromMillis %(J)Ljava/nio/file/attribute/FileTime; setLastModifiedTime L(Ljava/nio/file/Path;Ljava/nio/file/attribute/FileTime;)Ljava/nio/file/Path;
createFile R(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path; toAbsolutePath ()Ljava/nio/file/Path; normalize getParent createDirectories append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V getFileName lastIndexOf (I)I substring (I)Ljava/lang/String; (II)Ljava/lang/String; 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V java/util/Objects requireNonNull add (Ljava/lang/Object;)Z T(Ljava/lang/Object;[Ljava/nio/file/LinkOption;)Ljava/nio/file/SecureDirectoryStream; deleteDirectory (Ljava/lang/Object;)V
deleteFile iterator ()Ljava/util/Iterator; hasNext next delete getNameCount ()I
getFileSystem ()Ljava/nio/file/FileSystem; java/nio/file/FileSystem getPath ;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path; java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; *com/google/common/io/RecursiveDeleteOption ALLOW_INSECURE ,Lcom/google/common/io/RecursiveDeleteOption; java/util/List contains addAll (Ljava/util/Collection;)Z size #com/google/common/collect/Iterables getOnlyElement ((Ljava/lang/Iterable;)Ljava/lang/Object; getFile resolve equals ? ? "java/lang/invoke/LambdaMetafactory metafactory Lookup ?(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; %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles 1 v w { | } / *? ? ~ K ? ? ? ? ? } ? ? Y*+? ? ~ V ? ? ? ? ? ? ? ? ? ? } ? ? Y*+? ? ~ ? ? ? ? ? ? ? ? ? ? ? } H
*,? +? ? ~ ?
? ?
? ?
? ? ?
? ? ? ? ? ? } H
*,? +? ? ~ ?
? ?
? ?
? ? ?
? ? ? ? ? } ? 2*?
L+? M+? +? ,?M+? +? ? N,-? ,?L+? ?
! $
, , , ~
, - ' ? ? - ? ? 2 ? ? ? ' ? ? ? <