zhanghai / zhanghai/MaterialFiles

Maximum number of files in copy-paste function?

Open
#1,429 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

I have a parent directory on an Android device with many files (>30k files around 30Gb data total) which I have successfully copied and pasted to a FTPS location using MaterialFiles many times. That Android based parent directory is growing over time, and recently I have found that repeating the copy/paste operation hangs at “Preparing to copy” phase and never begins transfer.

My assumption is that the parent directory now contains too many files. It is possible to cancel the stalled "Prepairing" dialog. Copy/Paste of all the subdirectories (containing subsets of the total files) succeeds, hence the assumption of the limit.

Any ideas?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file, test, or entry point. Start by reproducing the stalled copy of a directory with more than 30,000 files to an FTPS location, then compare it with successful copies of smaller subdirectories. Done means identifying whether a file-count limit causes the hang and documenting or fixing the observed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.