.class Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt; .super Lkotlin/io/path/PathsKt__PathReadWriteKt; .source "PathRecursiveFunctions.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$WhenMappings; } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nPathRecursiveFunctions.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PathRecursiveFunctions.kt\nkotlin/io/path/PathsKt__PathRecursiveFunctionsKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,430:1\n346#1,2:434\n354#1:436\n354#1:437\n348#1,4:438\n346#1,2:442\n354#1:444\n348#1,4:445\n354#1:449\n346#1,6:450\n346#1,2:456\n354#1:458\n348#1,4:459\n1#2:431\n1855#3,2:432\n*S KotlinDebug\n*F\n+ 1 PathRecursiveFunctions.kt\nkotlin/io/path/PathsKt__PathRecursiveFunctionsKt\n*L\n362#1:434,2\n371#1:436\n374#1:437\n362#1:438,4\n382#1:442,2\n383#1:444\n382#1:445,4\n394#1:449\n402#1:450,6\n420#1:456,2\n421#1:458\n420#1:459,4\n284#1:432,2\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000v\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010 \n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a$\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00020\u00010\u0005H\u0082\u0008\u00a2\u0006\u0002\u0008\u0006\u001a\u001d\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002\u00a2\u0006\u0002\u0008\n\u001a\u001d\u0010\u000b\u001a\u00020\u00012\u0006\u0010\u000c\u001a\u00020\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002\u00a2\u0006\u0002\u0008\r\u001a&\u0010\u000e\u001a\u0004\u0018\u0001H\u000f\"\u0004\u0008\u0000\u0010\u000f2\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u0002H\u000f0\u0005H\u0082\u0008\u00a2\u0006\u0004\u0008\u0010\u0010\u0011\u001aw\u0010\u0012\u001a\u00020\t*\u00020\t2\u0006\u0010\u0013\u001a\u00020\t2Q\u0008\u0002\u0010\u0014\u001aK\u0012\u0013\u0012\u00110\t\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u0018\u0012\u0013\u0012\u00110\t\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u0013\u0012\u0017\u0012\u00150\u0019j\u0002`\u001a\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u001b\u0012\u0004\u0012\u00020\u001c0\u00152\u0006\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u001f\u001a\u00020\u001eH\u0007\u001a\u00b4\u0001\u0010\u0012\u001a\u00020\t*\u00020\t2\u0006\u0010\u0013\u001a\u00020\t2Q\u0008\u0002\u0010\u0014\u001aK\u0012\u0013\u0012\u00110\t\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u0018\u0012\u0013\u0012\u00110\t\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u0013\u0012\u0017\u0012\u00150\u0019j\u0002`\u001a\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u001b\u0012\u0004\u0012\u00020\u001c0\u00152\u0006\u0010\u001d\u001a\u00020\u001e2C\u0008\u0002\u0010 \u001a=\u0012\u0004\u0012\u00020!\u0012\u0013\u0012\u00110\t\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u0018\u0012\u0013\u0012\u00110\t\u00a2\u0006\u000c\u0008\u0016\u0012\u0008\u0008\u0017\u0012\u0004\u0008\u0008(\u0013\u0012\u0004\u0012\u00020\"0\u0015\u00a2\u0006\u0002\u0008#H\u0007\u001a\u000c\u0010$\u001a\u00020\u0001*\u00020\tH\u0007\u001a\u001b\u0010%\u001a\u000c\u0012\u0008\u0012\u00060\u0019j\u0002`\u001a0&*\u00020\tH\u0002\u00a2\u0006\u0002\u0008\'\u001a\'\u0010(\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\t0)2\u0006\u0010\u0017\u001a\u00020\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002\u00a2\u0006\u0002\u0008*\u001a\'\u0010+\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\t0)2\u0006\u0010\u0017\u001a\u00020\t2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002\u00a2\u0006\u0002\u0008,\u001a5\u0010-\u001a\u00020\u001e*\u0008\u0012\u0004\u0012\u00020\t0)2\u0006\u0010.\u001a\u00020\t2\u0012\u0010/\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020100\"\u000201H\u0002\u00a2\u0006\u0004\u00082\u00103\u001a\u0011\u00104\u001a\u000205*\u00020\"H\u0003\u00a2\u0006\u0002\u00086\u001a\u0011\u00104\u001a\u000205*\u00020\u001cH\u0003\u00a2\u0006\u0002\u00086\u00a8\u00067" } d2 = { "collectIfThrows", "", "collector", "Lkotlin/io/path/ExceptionsCollector;", "function", "Lkotlin/Function0;", "collectIfThrows$PathsKt__PathRecursiveFunctionsKt", "insecureEnterDirectory", "path", "Ljava/nio/file/Path;", "insecureEnterDirectory$PathsKt__PathRecursiveFunctionsKt", "insecureHandleEntry", "entry", "insecureHandleEntry$PathsKt__PathRecursiveFunctionsKt", "tryIgnoreNoSuchFileException", "R", "tryIgnoreNoSuchFileException$PathsKt__PathRecursiveFunctionsKt", "(Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;", "copyToRecursively", "target", "onError", "Lkotlin/Function3;", "Lkotlin/ParameterName;", "name", "source", "Ljava/lang/Exception;", "Lkotlin/Exception;", "exception", "Lkotlin/io/path/OnErrorResult;", "followLinks", "", "overwrite", "copyAction", "Lkotlin/io/path/CopyActionContext;", "Lkotlin/io/path/CopyActionResult;", "Lkotlin/ExtensionFunctionType;", "deleteRecursively", "deleteRecursivelyImpl", "", "deleteRecursivelyImpl$PathsKt__PathRecursiveFunctionsKt", "enterDirectory", "Ljava/nio/file/SecureDirectoryStream;", "enterDirectory$PathsKt__PathRecursiveFunctionsKt", "handleEntry", "handleEntry$PathsKt__PathRecursiveFunctionsKt", "isDirectory", "entryName", "options", "", "Ljava/nio/file/LinkOption;", "isDirectory$PathsKt__PathRecursiveFunctionsKt", "(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z", "toFileVisitResult", "Ljava/nio/file/FileVisitResult;", "toFileVisitResult$PathsKt__PathRecursiveFunctionsKt", "kotlin-stdlib-jdk7" } k = 0x5 mv = { 0x1, 0x9, 0x0 } xi = 0x31 xs = "kotlin/io/path/PathsKt" .end annotation # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Lkotlin/io/path/PathsKt__PathReadWriteKt;->()V return-void .end method .method public static final synthetic access$copyToRecursively$copy(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult; .locals 0 .line 1 invoke-static/range {p0 .. p5}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->copyToRecursively$copy$PathsKt__PathRecursiveFunctionsKt(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult; move-result-object p0 return-object p0 .end method .method public static final synthetic access$copyToRecursively$error(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/Exception;)Ljava/nio/file/FileVisitResult; .locals 0 .line 1 invoke-static {p0, p1, p2, p3, p4}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->copyToRecursively$error$PathsKt__PathRecursiveFunctionsKt(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/Exception;)Ljava/nio/file/FileVisitResult; move-result-object p0 return-object p0 .end method .method private static final collectIfThrows$PathsKt__PathRecursiveFunctionsKt(Lkotlin/io/path/ExceptionsCollector;Lkotlin/jvm/functions/Function0;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/io/path/ExceptionsCollector;", "Lkotlin/jvm/functions/Function0<", "Lkotlin/Unit;", ">;)V" } .end annotation .line 347 :try_start_0 invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p1 .line 349 invoke-virtual {p0, p1}, Lkotlin/io/path/ExceptionsCollector;->collect(Ljava/lang/Exception;)V :goto_0 return-void .end method .method public static final copyToRecursively(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZLkotlin/jvm/functions/Function3;)Ljava/nio/file/Path; .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Ljava/nio/file/Path;", "Lkotlin/jvm/functions/Function3<", "-", "Ljava/nio/file/Path;", "-", "Ljava/nio/file/Path;", "-", "Ljava/lang/Exception;", "+", "Lkotlin/io/path/OnErrorResult;", ">;Z", "Lkotlin/jvm/functions/Function3<", "-", "Lkotlin/io/path/CopyActionContext;", "-", "Ljava/nio/file/Path;", "-", "Ljava/nio/file/Path;", "+", "Lkotlin/io/path/CopyActionResult;", ">;)", "Ljava/nio/file/Path;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "target" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "onError" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "copyAction" invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 159 sget-object v0, Lkotlin/io/path/LinkFollowing;->INSTANCE:Lkotlin/io/path/LinkFollowing; invoke-virtual {v0, p3}, Lkotlin/io/path/LinkFollowing;->toLinkOptions(Z)[Ljava/nio/file/LinkOption; move-result-object v0 array-length v1, v0 invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v0 check-cast v0, [Ljava/nio/file/LinkOption; array-length v1, v0 invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v0 check-cast v0, [Ljava/nio/file/LinkOption; invoke-static {p0, v0}, Ljava/nio/file/Files;->exists(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z move-result v0 if-eqz v0, :cond_7 const/4 v0, 0x0 new-array v1, v0, [Ljava/nio/file/LinkOption; .line 162 invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v1 check-cast v1, [Ljava/nio/file/LinkOption; invoke-static {p0, v1}, Ljava/nio/file/Files;->exists(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z move-result v1 if-eqz v1, :cond_6 if-nez p3, :cond_0 invoke-static {p0}, Ljava/nio/file/Files;->isSymbolicLink(Ljava/nio/file/Path;)Z move-result v1 if-nez v1, :cond_6 :cond_0 new-array v1, v0, [Ljava/nio/file/LinkOption; .line 168 invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v1 check-cast v1, [Ljava/nio/file/LinkOption; invoke-static {p1, v1}, Ljava/nio/file/Files;->exists(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z move-result v1 if-eqz v1, :cond_1 invoke-static {p1}, Ljava/nio/file/Files;->isSymbolicLink(Ljava/nio/file/Path;)Z move-result v1 if-nez v1, :cond_1 const/4 v1, 0x1 goto :goto_0 :cond_1 move v1, v0 :goto_0 if-eqz v1, :cond_2 .line 170 invoke-static {p0, p1}, Ljava/nio/file/Files;->isSameFile(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z move-result v2 if-nez v2, :cond_6 .line 175 :cond_2 invoke-interface {p0}, Ljava/nio/file/Path;->getFileSystem()Ljava/nio/file/FileSystem; move-result-object v2 invoke-interface {p1}, Ljava/nio/file/Path;->getFileSystem()Ljava/nio/file/FileSystem; move-result-object v3 invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_3 goto :goto_1 :cond_3 if-eqz v1, :cond_4 new-array v1, v0, [Ljava/nio/file/LinkOption; .line 178 invoke-interface {p1, v1}, Ljava/nio/file/Path;->toRealPath([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path; move-result-object v1 new-array v0, v0, [Ljava/nio/file/LinkOption; invoke-interface {p0, v0}, Ljava/nio/file/Path;->toRealPath([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path; move-result-object v0 invoke-interface {v1, v0}, Ljava/nio/file/Path;->startsWith(Ljava/nio/file/Path;)Z move-result v0 if-nez v0, :cond_5 goto :goto_1 .line 180 :cond_4 invoke-interface {p1}, Ljava/nio/file/Path;->getParent()Ljava/nio/file/Path; move-result-object v1 if-eqz v1, :cond_6 new-array v2, v0, [Ljava/nio/file/LinkOption; invoke-static {v2, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v2 check-cast v2, [Ljava/nio/file/LinkOption; invoke-static {v1, v2}, Ljava/nio/file/Files;->exists(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z move-result v2 if-eqz v2, :cond_6 new-array v2, v0, [Ljava/nio/file/LinkOption; invoke-interface {v1, v2}, Ljava/nio/file/Path;->toRealPath([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path; move-result-object v1 new-array v0, v0, [Ljava/nio/file/LinkOption; invoke-interface {p0, v0}, Ljava/nio/file/Path;->toRealPath([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path; move-result-object v0 invoke-interface {v1, v0}, Ljava/nio/file/Path;->startsWith(Ljava/nio/file/Path;)Z move-result v0 if-nez v0, :cond_5 goto :goto_1 .line 183 :cond_5 new-instance p2, Ljava/nio/file/FileSystemException; .line 184 invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 .line 185 invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 const-string p3, "Recursively copying a directory into its subdirectory is prohibited." .line 183 invoke-direct {p2, p0, p1, p3}, Ljava/nio/file/FileSystemException;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V throw p2 :cond_6 :goto_1 const/4 v1, 0x0 .line 209 new-instance v0, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$5; invoke-direct {v0, p4, p0, p1, p2}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$5;->(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;)V move-object v3, v0 check-cast v3, Lkotlin/jvm/functions/Function1; const/4 v4, 0x1 const/4 v5, 0x0 move-object v0, p0 move v2, p3 invoke-static/range {v0 .. v5}, Lkotlin/io/path/PathsKt;->visitFileTree$default(Ljava/nio/file/Path;IZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V return-object p1 .line 160 :cond_7 new-instance p2, Ljava/nio/file/NoSuchFileException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 const-string p3, "The source file doesn\'t exist." invoke-direct {p2, p0, p1, p3}, Ljava/nio/file/NoSuchFileException;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V throw p2 .end method .method public static final copyToRecursively(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZZ)Ljava/nio/file/Path; .locals 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Ljava/nio/file/Path;", "Lkotlin/jvm/functions/Function3<", "-", "Ljava/nio/file/Path;", "-", "Ljava/nio/file/Path;", "-", "Ljava/lang/Exception;", "+", "Lkotlin/io/path/OnErrorResult;", ">;ZZ)", "Ljava/nio/file/Path;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "target" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "onError" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V if-eqz p4, :cond_0 .line 77 new-instance p4, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$2; invoke-direct {p4, p3}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$2;->(Z)V check-cast p4, Lkotlin/jvm/functions/Function3; invoke-static {p0, p1, p2, p3, p4}, Lkotlin/io/path/PathsKt;->copyToRecursively(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZLkotlin/jvm/functions/Function3;)Ljava/nio/file/Path; move-result-object p0 goto :goto_0 :cond_0 const/4 v4, 0x0 const/16 v5, 0x8 const/4 v6, 0x0 move-object v0, p0 move-object v1, p1 move-object v2, p2 move v3, p3 .line 92 invoke-static/range {v0 .. v6}, Lkotlin/io/path/PathsKt;->copyToRecursively$default(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZLkotlin/jvm/functions/Function3;ILjava/lang/Object;)Ljava/nio/file/Path; move-result-object p0 :goto_0 return-object p0 .end method .method private static final copyToRecursively$copy$PathsKt__PathRecursiveFunctionsKt(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/jvm/functions/Function3<", "-", "Lkotlin/io/path/CopyActionContext;", "-", "Ljava/nio/file/Path;", "-", "Ljava/nio/file/Path;", "+", "Lkotlin/io/path/CopyActionResult;", ">;", "Ljava/nio/file/Path;", "Ljava/nio/file/Path;", "Lkotlin/jvm/functions/Function3<", "-", "Ljava/nio/file/Path;", "-", "Ljava/nio/file/Path;", "-", "Ljava/lang/Exception;", "+", "Lkotlin/io/path/OnErrorResult;", ">;", "Ljava/nio/file/Path;", "Ljava/nio/file/attribute/BasicFileAttributes;", ")", "Ljava/nio/file/FileVisitResult;" } .end annotation .line 203 :try_start_0 sget-object p5, Lkotlin/io/path/DefaultCopyActionContext;->INSTANCE:Lkotlin/io/path/DefaultCopyActionContext; invoke-static {p1, p2, p4}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->copyToRecursively$destination$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path; move-result-object v0 invoke-interface {p0, p5, p4, v0}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Lkotlin/io/path/CopyActionResult; invoke-static {p0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->toFileVisitResult$PathsKt__PathRecursiveFunctionsKt(Lkotlin/io/path/CopyActionResult;)Ljava/nio/file/FileVisitResult; move-result-object p0 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p0 .line 205 invoke-static {p3, p1, p2, p4, p0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->copyToRecursively$error$PathsKt__PathRecursiveFunctionsKt(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/Exception;)Ljava/nio/file/FileVisitResult; move-result-object p0 :goto_0 return-object p0 .end method .method public static synthetic copyToRecursively$default(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZLkotlin/jvm/functions/Function3;ILjava/lang/Object;)Ljava/nio/file/Path; .locals 0 and-int/lit8 p6, p5, 0x2 if-eqz p6, :cond_0 .line 153 sget-object p2, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$3;->INSTANCE:Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$3; check-cast p2, Lkotlin/jvm/functions/Function3; :cond_0 and-int/lit8 p5, p5, 0x8 if-eqz p5, :cond_1 .line 155 new-instance p4, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$4; invoke-direct {p4, p3}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$4;->(Z)V check-cast p4, Lkotlin/jvm/functions/Function3; .line 151 :cond_1 invoke-static {p0, p1, p2, p3, p4}, Lkotlin/io/path/PathsKt;->copyToRecursively(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZLkotlin/jvm/functions/Function3;)Ljava/nio/file/Path; move-result-object p0 return-object p0 .end method .method public static synthetic copyToRecursively$default(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZZILjava/lang/Object;)Ljava/nio/file/Path; .locals 0 and-int/lit8 p5, p5, 0x2 if-eqz p5, :cond_0 .line 72 sget-object p2, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$1;->INSTANCE:Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$copyToRecursively$1; check-cast p2, Lkotlin/jvm/functions/Function3; .line 70 :cond_0 invoke-static {p0, p1, p2, p3, p4}, Lkotlin/io/path/PathsKt;->copyToRecursively(Ljava/nio/file/Path;Ljava/nio/file/Path;Lkotlin/jvm/functions/Function3;ZZ)Ljava/nio/file/Path; move-result-object p0 return-object p0 .end method .method private static final copyToRecursively$destination$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path; .locals 0 .line 192 invoke-static {p2, p0}, Lkotlin/io/path/PathsKt;->relativeTo(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path; move-result-object p0 .line 193 invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-interface {p1, p0}, Ljava/nio/file/Path;->resolve(Ljava/lang/String;)Ljava/nio/file/Path; move-result-object p0 const-string p1, "resolve(...)" invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method private static final copyToRecursively$error$PathsKt__PathRecursiveFunctionsKt(Lkotlin/jvm/functions/Function3;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/Exception;)Ljava/nio/file/FileVisitResult; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/jvm/functions/Function3<", "-", "Ljava/nio/file/Path;", "-", "Ljava/nio/file/Path;", "-", "Ljava/lang/Exception;", "+", "Lkotlin/io/path/OnErrorResult;", ">;", "Ljava/nio/file/Path;", "Ljava/nio/file/Path;", "Ljava/nio/file/Path;", "Ljava/lang/Exception;", ")", "Ljava/nio/file/FileVisitResult;" } .end annotation .line 197 invoke-static {p1, p2, p3}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->copyToRecursively$destination$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path; move-result-object p1 invoke-interface {p0, p3, p1, p4}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Lkotlin/io/path/OnErrorResult; invoke-static {p0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->toFileVisitResult$PathsKt__PathRecursiveFunctionsKt(Lkotlin/io/path/OnErrorResult;)Ljava/nio/file/FileVisitResult; move-result-object p0 return-object p0 .end method .method public static final deleteRecursively(Ljava/nio/file/Path;)V .locals 3 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 280 invoke-static {p0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->deleteRecursivelyImpl$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;)Ljava/util/List; move-result-object p0 .line 282 move-object v0, p0 check-cast v0, Ljava/util/Collection; invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z move-result v0 xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_1 .line 283 new-instance v0, Ljava/nio/file/FileSystemException; const-string v1, "Failed to delete one or more files. See suppressed exceptions for details." invoke-direct {v0, v1}, Ljava/nio/file/FileSystemException;->(Ljava/lang/String;)V .line 284 check-cast p0, Ljava/lang/Iterable; .line 432 invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object p0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_0 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/Exception; .line 284 move-object v2, v0 check-cast v2, Ljava/lang/Throwable; check-cast v1, Ljava/lang/Throwable; invoke-static {v2, v1}, Lkotlin/ExceptionsKt;->addSuppressed(Ljava/lang/Throwable;Ljava/lang/Throwable;)V goto :goto_0 .line 283 :cond_0 check-cast v0, Ljava/lang/Throwable; throw v0 :cond_1 return-void .end method .method private static final deleteRecursivelyImpl$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;)Ljava/util/List; .locals 8 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", ")", "Ljava/util/List<", "Ljava/lang/Exception;", ">;" } .end annotation .line 323 new-instance v0, Lkotlin/io/path/ExceptionsCollector; const/4 v1, 0x0 const/4 v2, 0x1 const/4 v3, 0x0 invoke-direct {v0, v1, v2, v3}, Lkotlin/io/path/ExceptionsCollector;->(IILkotlin/jvm/internal/DefaultConstructorMarker;)V .line 327 invoke-interface {p0}, Ljava/nio/file/Path;->getParent()Ljava/nio/file/Path; move-result-object v4 if-eqz v4, :cond_1 .line 328 :try_start_0 invoke-static {v4}, Ljava/nio/file/Files;->newDirectoryStream(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream; move-result-object v5 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-object v5, v3 :goto_0 if-eqz v5, :cond_1 .line 329 check-cast v5, Ljava/io/Closeable; :try_start_1 move-object v6, v5 check-cast v6, Ljava/nio/file/DirectoryStream; .line 330 instance-of v7, v6, Ljava/nio/file/SecureDirectoryStream; if-eqz v7, :cond_0 .line 332 invoke-virtual {v0, v4}, Lkotlin/io/path/ExceptionsCollector;->setPath(Ljava/nio/file/Path;)V .line 333 check-cast v6, Ljava/nio/file/SecureDirectoryStream; invoke-interface {p0}, Ljava/nio/file/Path;->getFileName()Ljava/nio/file/Path; move-result-object v2 const-string v4, "getFileName(...)" invoke-static {v2, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {v6, v2, v0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->handleEntry$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V goto :goto_1 :cond_0 move v1, v2 .line 335 :goto_1 sget-object v2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 .line 329 invoke-static {v5, v3}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V if-eqz v1, :cond_2 goto :goto_2 :catchall_1 move-exception p0 :try_start_2 throw p0 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_2 :catchall_2 move-exception v0 invoke-static {v5, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v0 .line 339 :cond_1 :goto_2 invoke-static {p0, v0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->insecureHandleEntry$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .line 342 :cond_2 invoke-virtual {v0}, Lkotlin/io/path/ExceptionsCollector;->getCollectedExceptions()Ljava/util/List; move-result-object p0 return-object p0 .end method .method private static final enterDirectory$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/SecureDirectoryStream<", "Ljava/nio/file/Path;", ">;", "Ljava/nio/file/Path;", "Lkotlin/io/path/ExceptionsCollector;", ")V" } .end annotation const/4 v0, 0x1 const/4 v1, 0x0 :try_start_0 new-array v0, v0, [Ljava/nio/file/LinkOption; .line 384 sget-object v2, Ljava/nio/file/LinkOption;->NOFOLLOW_LINKS:Ljava/nio/file/LinkOption; const/4 v3, 0x0 aput-object v2, v0, v3 invoke-interface {p0, p1, v0}, Ljava/nio/file/SecureDirectoryStream;->newDirectoryStream(Ljava/lang/Object;[Ljava/nio/file/LinkOption;)Ljava/nio/file/SecureDirectoryStream; move-result-object p0 :try_end_0 .catch Ljava/nio/file/NoSuchFileException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p0 goto :goto_2 :catch_1 move-object p0, v1 :goto_0 if-eqz p0, :cond_1 .line 383 :try_start_1 check-cast p0, Ljava/io/Closeable; :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 .line 385 :try_start_2 move-object p1, p0 check-cast p1, Ljava/nio/file/SecureDirectoryStream; .line 386 invoke-interface {p1}, Ljava/nio/file/SecureDirectoryStream;->iterator()Ljava/util/Iterator; move-result-object v0 :goto_1 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_0 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/nio/file/Path; .line 387 invoke-interface {v2}, Ljava/nio/file/Path;->getFileName()Ljava/nio/file/Path; move-result-object v2 const-string v3, "getFileName(...)" invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p1, v2, p2}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->handleEntry$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V goto :goto_1 .line 389 :cond_0 sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 .line 385 :try_start_3 invoke-static {p0, v1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V :try_end_3 .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0 goto :goto_3 :catchall_0 move-exception p1 :try_start_4 throw p1 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_1 :catchall_1 move-exception v0 :try_start_5 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v0 :try_end_5 .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0 .line 446 :goto_2 invoke-virtual {p2, p0}, Lkotlin/io/path/ExceptionsCollector;->collect(Ljava/lang/Exception;)V :cond_1 :goto_3 return-void .end method .method private static final handleEntry$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/SecureDirectoryStream<", "Ljava/nio/file/Path;", ">;", "Ljava/nio/file/Path;", "Lkotlin/io/path/ExceptionsCollector;", ")V" } .end annotation .line 360 invoke-virtual {p2, p1}, Lkotlin/io/path/ExceptionsCollector;->enterEntry(Ljava/nio/file/Path;)V const/4 v0, 0x1 :try_start_0 new-array v0, v0, [Ljava/nio/file/LinkOption; .line 363 sget-object v1, Ljava/nio/file/LinkOption;->NOFOLLOW_LINKS:Ljava/nio/file/LinkOption; const/4 v2, 0x0 aput-object v1, v0, v2 invoke-static {p0, p1, v0}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->isDirectory$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z move-result v0 if-eqz v0, :cond_0 .line 364 invoke-virtual {p2}, Lkotlin/io/path/ExceptionsCollector;->getTotalExceptions()I move-result v0 .line 366 invoke-static {p0, p1, p2}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->enterDirectory$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .line 370 invoke-virtual {p2}, Lkotlin/io/path/ExceptionsCollector;->getTotalExceptions()I move-result v1 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 if-ne v0, v1, :cond_1 .line 371 :try_start_1 invoke-interface {p0, p1}, Ljava/nio/file/SecureDirectoryStream;->deleteDirectory(Ljava/lang/Object;)V sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; goto :goto_0 .line 374 :cond_0 invoke-interface {p0, p1}, Ljava/nio/file/SecureDirectoryStream;->deleteFile(Ljava/lang/Object;)V sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_1 .catch Ljava/nio/file/NoSuchFileException; {:try_start_1 .. :try_end_1} :catch_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 goto :goto_0 :catch_0 move-exception p0 .line 439 invoke-virtual {p2, p0}, Lkotlin/io/path/ExceptionsCollector;->collect(Ljava/lang/Exception;)V .line 378 :catch_1 :cond_1 :goto_0 invoke-virtual {p2, p1}, Lkotlin/io/path/ExceptionsCollector;->exitEntry(Ljava/nio/file/Path;)V return-void .end method .method private static final insecureEnterDirectory$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .locals 3 const/4 v0, 0x0 .line 422 :try_start_0 invoke-static {p0}, Ljava/nio/file/Files;->newDirectoryStream(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream; move-result-object p0 :try_end_0 .catch Ljava/nio/file/NoSuchFileException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p0 goto :goto_2 :catch_1 move-object p0, v0 :goto_0 if-eqz p0, :cond_1 .line 421 :try_start_1 check-cast p0, Ljava/io/Closeable; :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 .line 423 :try_start_2 move-object v1, p0 check-cast v1, Ljava/nio/file/DirectoryStream; .line 424 invoke-interface {v1}, Ljava/nio/file/DirectoryStream;->iterator()Ljava/util/Iterator; move-result-object v1 :goto_1 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_0 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/nio/file/Path; .line 425 invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-static {v2, p1}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->insecureHandleEntry$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V goto :goto_1 .line 427 :cond_0 sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 .line 423 :try_start_3 invoke-static {p0, v0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V :try_end_3 .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0 goto :goto_3 :catchall_0 move-exception v0 :try_start_4 throw v0 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_1 :catchall_1 move-exception v1 :try_start_5 invoke-static {p0, v0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v1 :try_end_5 .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0 .line 460 :goto_2 invoke-virtual {p1, p0}, Lkotlin/io/path/ExceptionsCollector;->collect(Ljava/lang/Exception;)V :cond_1 :goto_3 return-void .end method .method private static final insecureHandleEntry$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .locals 4 const/4 v0, 0x1 :try_start_0 new-array v1, v0, [Ljava/nio/file/LinkOption; .line 403 sget-object v2, Ljava/nio/file/LinkOption;->NOFOLLOW_LINKS:Ljava/nio/file/LinkOption; const/4 v3, 0x0 aput-object v2, v1, v3 invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v0 check-cast v0, [Ljava/nio/file/LinkOption; invoke-static {p0, v0}, Ljava/nio/file/Files;->isDirectory(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z move-result v0 if-eqz v0, :cond_0 .line 404 invoke-virtual {p1}, Lkotlin/io/path/ExceptionsCollector;->getTotalExceptions()I move-result v0 .line 406 invoke-static {p0, p1}, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt;->insecureEnterDirectory$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/Path;Lkotlin/io/path/ExceptionsCollector;)V .line 410 invoke-virtual {p1}, Lkotlin/io/path/ExceptionsCollector;->getTotalExceptions()I move-result v1 if-ne v0, v1, :cond_1 .line 411 invoke-static {p0}, Ljava/nio/file/Files;->deleteIfExists(Ljava/nio/file/Path;)Z goto :goto_0 .line 414 :cond_0 invoke-static {p0}, Ljava/nio/file/Files;->deleteIfExists(Ljava/nio/file/Path;)Z :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p0 .line 453 invoke-virtual {p1, p0}, Lkotlin/io/path/ExceptionsCollector;->collect(Ljava/lang/Exception;)V :cond_1 :goto_0 return-void .end method .method private static final varargs isDirectory$PathsKt__PathRecursiveFunctionsKt(Ljava/nio/file/SecureDirectoryStream;Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/SecureDirectoryStream<", "Ljava/nio/file/Path;", ">;", "Ljava/nio/file/Path;", "[", "Ljava/nio/file/LinkOption;", ")Z" } .end annotation .line 395 :try_start_0 const-class v0, Ljava/nio/file/attribute/BasicFileAttributeView; array-length v1, p2 invoke-static {p2, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object p2 check-cast p2, [Ljava/nio/file/LinkOption; invoke-interface {p0, p1, v0, p2}, Ljava/nio/file/SecureDirectoryStream;->getFileAttributeView(Ljava/lang/Object;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileAttributeView; move-result-object p0 check-cast p0, Ljava/nio/file/attribute/BasicFileAttributeView; invoke-interface {p0}, Ljava/nio/file/attribute/BasicFileAttributeView;->readAttributes()Ljava/nio/file/attribute/BasicFileAttributes; move-result-object p0 invoke-interface {p0}, Ljava/nio/file/attribute/BasicFileAttributes;->isDirectory()Z move-result p0 invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p0 :try_end_0 .catch Ljava/nio/file/NoSuchFileException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const/4 p0, 0x0 :goto_0 if-eqz p0, :cond_0 .line 394 invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z move-result p0 goto :goto_1 :cond_0 const/4 p0, 0x0 :goto_1 return p0 .end method .method private static final toFileVisitResult$PathsKt__PathRecursiveFunctionsKt(Lkotlin/io/path/CopyActionResult;)Ljava/nio/file/FileVisitResult; .locals 1 .line 241 sget-object v0, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$WhenMappings;->$EnumSwitchMapping$0:[I invoke-virtual {p0}, Lkotlin/io/path/CopyActionResult;->ordinal()I move-result p0 aget p0, v0, p0 const/4 v0, 0x1 if-eq p0, v0, :cond_2 const/4 v0, 0x2 if-eq p0, v0, :cond_1 const/4 v0, 0x3 if-ne p0, v0, :cond_0 .line 244 sget-object p0, Ljava/nio/file/FileVisitResult;->SKIP_SUBTREE:Ljava/nio/file/FileVisitResult; goto :goto_0 :cond_0 new-instance p0, Lkotlin/NoWhenBranchMatchedException; invoke-direct {p0}, Lkotlin/NoWhenBranchMatchedException;->()V throw p0 .line 243 :cond_1 sget-object p0, Ljava/nio/file/FileVisitResult;->TERMINATE:Ljava/nio/file/FileVisitResult; goto :goto_0 .line 242 :cond_2 sget-object p0, Ljava/nio/file/FileVisitResult;->CONTINUE:Ljava/nio/file/FileVisitResult; :goto_0 return-object p0 .end method .method private static final toFileVisitResult$PathsKt__PathRecursiveFunctionsKt(Lkotlin/io/path/OnErrorResult;)Ljava/nio/file/FileVisitResult; .locals 1 .line 248 sget-object v0, Lkotlin/io/path/PathsKt__PathRecursiveFunctionsKt$WhenMappings;->$EnumSwitchMapping$1:[I invoke-virtual {p0}, Lkotlin/io/path/OnErrorResult;->ordinal()I move-result p0 aget p0, v0, p0 const/4 v0, 0x1 if-eq p0, v0, :cond_1 const/4 v0, 0x2 if-ne p0, v0, :cond_0 .line 250 sget-object p0, Ljava/nio/file/FileVisitResult;->SKIP_SUBTREE:Ljava/nio/file/FileVisitResult; goto :goto_0 :cond_0 new-instance p0, Lkotlin/NoWhenBranchMatchedException; invoke-direct {p0}, Lkotlin/NoWhenBranchMatchedException;->()V throw p0 .line 249 :cond_1 sget-object p0, Ljava/nio/file/FileVisitResult;->TERMINATE:Ljava/nio/file/FileVisitResult; :goto_0 return-object p0 .end method .method private static final tryIgnoreNoSuchFileException$PathsKt__PathRecursiveFunctionsKt(Lkotlin/jvm/functions/Function0;)Ljava/lang/Object; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/jvm/functions/Function0<", "+TR;>;)TR;" } .end annotation .line 354 :try_start_0 invoke-interface {p0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object; move-result-object p0 :try_end_0 .catch Ljava/nio/file/NoSuchFileException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const/4 p0, 0x0 :goto_0 return-object p0 .end method