Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

[Bug]: 设置下载目录 转移数据失败后 会删除源文件和下载记录 #569

@specked2527

Description

@specked2527

描述/Description

设置下载目录为sd卡
转移失败后 会删除源文件和下载记录
Screenshot_20240619183704

Version

3.1.3

使用的操作系统/Operating system

Android

日志/logs

PathAccessException: Cannot create file, path = '/storage/9C33-6BBD/漫画/.nomedia' (OS Error: Permission denied, errno = 13)
#0 _checkForErrorResponse (dart:io/common.dart:55)
#1 _File.create. (dart:io/file_impl.dart:286)
#2 _rootRunUnary (dart:async/zone.dart:1407)

#3 DownloadManager._getPath (package:pica_comic/network/download.dart:116)

#4 DownloadManager.init (package:pica_comic/network/download.dart:199)

#5 DownloadManager.updatePath (package:pica_comic/network/download.dart:149)

#6 _SetDownloadFolderDialogState.build. (package:pica_comic/views/settings/app_settings.dart:270)

PathAccessException: Cannot copy file to '/storage/9C33-6BBD/漫画/.nomedia', path = '/data/user/0/com.github.wgh136.pica_comic/files/download/.nomedia' (OS Error: Permission denied, errno = 13)
#0 _File.throwIfError (dart:io/file_impl.dart:675)
#1 _File.copySync (dart:io/file_impl.dart:366)
#2 copyDirectory (package:pica_comic/tools/io_tools.dart:248)
#3 DownloadManager.updatePath (package:pica_comic/network/download.dart:136)

#4 _SetDownloadFolderDialogState.build. (package:pica_comic/views/settings/app_settings.dart:270)

PlatformException(error, Missing type parameter., null, java.lang.RuntimeException: Missing type parameter.
at d3.a.d(SourceFile:1)
at d3.a.(SourceFile:1)
at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin$a.(Unknown Source:0)
at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.loadScheduledNotifications(Unknown Source:25)
at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.removeNotificationFromCache(Unknown Source:0)
at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.cancelNotification(Unknown Source:53)
at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.cancel(SourceFile:1)
at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.onMethodCall(SourceFile:1)
at v3.k$a.a(SourceFile:1)
at m3.c.i(SourceFile:1)
at m3.c.m(SourceFile:1)
at m3.c.e(SourceFile:1)
at m3.b.run(SourceFile:1)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:205)
at android.app.ActivityThread.main(ActivityThread.java:6991)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:884)
)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334)

#2 FlutterLocalNotificationsPlugin.cancel (package:flutter_local_notifications/src/flutter_local_notifications_plugin.dart:280)

#3 Notifications.endProgress (package:pica_comic/tools/notification.dart:91)

截图或视频/Screenshot or video

实际没有转移文件到sd卡 但默认下载位置的文件已经被删除
Uploading Screenshot_20240619182556.jpg…
Screenshot_20240619182556

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐞Something isn't workingnext versionThis issue will be closed after the next version is released.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions