question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

download_task.sql created in a public folder

See original GitHub issue

Describe the bug In iOS, we set the download path using getApplicationDocumentsDirectory() and apply some configs in order for the downloaded file to be accessible for the user (as described in https://stackoverflow.com/a/56409320). This method works fine, the file is downloaded and the user can see it and open it.

The problem is that the plugin also creates another file in this directory. This file is download_task.sql and is internal to the plugin, and should not be visible for the user.

I’m not an ios developer myself so I asked an ios developer for an analysis and he said that the plugin is doing some incorrectly:


> NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)


should be

> NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES)


Device information:

  • Device: iPhone 12 Pro Max
  • OS: iOS 15.5
  • plugin version 1.8.3+2

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
IlyaMaxcommented, Dec 2, 2022

that fixes work for me

1reaction
bartekpaciacommented, Nov 23, 2022

This should be fixed by #728 and #757.

I’m not going to close it now in case bugs arise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass foldername to save file into the folder?
I am using swift 3 xcode 8. If I hard code the custom directory in func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, ...
Read more >
Publish and download pipeline Artifacts - Azure
How to publish and consume pipeline artifacts.
Read more >
How to use Azure Blob Download Task to download Multiple ...
In this Blog we are going to learn How to use azure blob download task to download multiple files from azure blob storage...
Read more >
sql-docs/azure-blob-download-task.md at live - GitHub
Specifies whether to search recursively within sub-directories. LocalDirectory, Specifies the local directory where the downloaded blob files are stored.
Read more >
How to automatically pull data from a shared script folder to a ...
A shared SQL script folder is created that contains the complete database schema (structure). If this requirement is not met, check out the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found