Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

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

Closed
specked2527 opened this issue Jun 19, 2024 · 0 comments
Labels
bug🐞 Something isn't working next version This issue will be closed after the next version is released.

Comments

@specked2527
Copy link

specked2527 commented Jun 19, 2024

描述/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

@specked2527 specked2527 added the bug🐞 Something isn't working label Jun 19, 2024
@wgh136 wgh136 added the next version This issue will be closed after the next version is released. label Jun 30, 2024
@wgh136 wgh136 closed this as completed in f4fe3b1 Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug🐞 Something isn't working next version This issue will be closed after the next version is released.
Projects
None yet
Development

No branches or pull requests

2 participants