I Used AI to Automatically Save 16TB of English Resources to My Baidu Netdisk
I used AI to select 281,000 English-learning files from 886,000 files, organize 15.95TB by category and difficulty, and automatically save them to my Baidu Netdisk, with read-back checks, reconciliation, and cleanup.


The one-sentence version: From 886,000 files in a resource-sharing group, I had AI select 281,000 English-learning files totaling 15.95TB. After organizing them into folders by category and difficulty, I had them automatically saved to my own Baidu Netdisk. The transfer ran for 29 hours without a single failed request. Finally, I reconciled the figures against the storage used in my Netdisk account, with a discrepancy of less than 0.1GB.
Note: TB and GB in this article follow Baidu Netdisk's display convention (1TB = 1024GB). All figures come from the records of this actual run.
1. Why I Started: Too Many Resources, but I Only Wanted English#
I bought a large collection of learning materials in a resource-sharing group, advertised as 120TB.
The problems were:
- I only cared about English-learning materials. I had no use for the other subjects, software, or film and TV collections.
- My Baidu Netdisk only had 30TB of storage. Saving everything was out of the question.
- The materials were numerous and disorganized: the same textbook set appeared in several folders; English materials were mixed with other content; and some folders were called “Live Updates” or “Member Resources,” giving no clue about what was inside.
The file library of just this one general resource-sharing group contained 86,000 folders and 886,000 files. I could spend a lifetime clicking through them and never finish.
So I decided to let AI handle it. I used Claude Code in the Claude desktop app, together with an open-source Baidu Netdisk command-line tool (baiduwangpan-cli). AI wrote scripts, ran them, and checked the results. My role was to scan the login QR code, make decisions, and clear some Netdisk space along the way.
2. The Overall Approach: Five Steps#

All five steps had one thing in common: not a single file was downloaded to my computer at any point.
- The first two steps only examined the “file inventory”—text information such as filenames, paths, and sizes.
- The “transfers” in the last three steps were copies made within the Netdisk servers, without using my home broadband connection.
So those 16TB of files took up no space at all on my computer's hard drive.
3. Step 1: Read the Inventory First#
Log In, Then Read a Small Sample#
AI first helped me install the command-line tool. The tool opened a dedicated Chrome window, and I scanned a QR code with the Baidu Netdisk app to log in. AI had no access to my password during this process, and the login information stayed on my own computer.
It then read a small sample: 13 folders and 1,234 files. Only after confirming that it could read the data correctly did it begin the full scan.
The Full Scan: 38 Hours, One Folder at a Time#
The full scan read every folder in the group's file library. To avoid burdening the server, it paused for one second after reading each folder, so the process took about 38 hours in total.
The scan results were:
Item | Count |
|---|---|
Folders | 85,684 |
Files | 885,957 |
Total size | About 55.7TB |
After the first scan, 13 folders had not been read. One additional pass filled in all the gaps.
What Was in the Inventory?#

Each file occupied one line of text in the inventory. The four most important pieces of information were:
- Path: used to decide whether the file was an English-learning resource, its category, and its difficulty.
- Size and md5: md5 acts as a file's “fingerprint.” If both match, the files are the same. Deduplication and the final checks relied on these two fields.
- File ID: used during the transfer to tell Netdisk exactly which file I wanted.
With this inventory, classification required no file downloads at all.
4. Step 2: Have AI Classify, Deduplicate, and Assign Difficulty Levels#
The Rules I Set for AI#
- Do not change a single character in the original inventory. Save the classification results in a separate new file, so I can go back and review them at any time.
- Judge only by paths and filenames. Do not open the file contents.
- List excluded items separately and explain why they were excluded, so I can review them manually.
Rather than “looking at” 880,000 filenames one by one, AI first read the inventory and identified patterns, then wrote a set of classification rules for a program to apply in one run. For example:
- If a path contained “New Concept,” classify it under “New Concept English.”
- If it said “Book 1,” assign the corresponding difficulty level.
- If a folder contained “Chinese dub,” exclude it.
Filtering Results: 886,000 → 281,000#

- 443,000 files totaling 22.8TB were related to English learning.
- Many were duplicates: the same file appeared in several folders. After deduplicating files with matching md5 values and sizes, 281,000 files totaling 15.95TB remained, saving 6.9TB of storage.
- The result was divided into two parts:
- Core (14.03TB): dedicated learning materials.
- Optional (1.92TB): extras such as films with their original audio, documentaries, and animation aimed at adults.
- Another 1,121 groups of content, mostly Chinese-dubbed versions, were excluded and listed separately for review.
Designing the Folder Structure#
This mattered a lot to me: the transferred files could not end up in one big jumble; they had to go into their assigned categories.

There were five levels:
- Core / Optional
- Category: 14 in total, including New Concept English, English Animation and Children's Shows, Graded Readers and Picture Books, and Phonics and Phonetic Symbols…
- Difficulty level
- Collection: the seller's original resource package, such as “Hujiang — New Concept English (All Four Books)”
- Original subfolders and files: preserved as they were, without rearranging them
One detail: collections from different sources often had identical names and would “collide” if put together. For collections with the same name, I added another level, “Source-xxx,” to distinguish them. In this run, 516 collections needed that extra level.
How Much Was in Each Category?#

English Animation and Children's Shows was the largest category at 8,380GB, accounting for 58% of the core resources. It was followed by children's songs, courses by well-known teachers, and New Concept English.
Assigning Difficulty Levels#

There were six levels, from L1 Introductory (preschool and complete beginners) to L6 Advanced (postgraduate entrance exams, IELTS/TOEFL, and original-language books), corresponding to Pre-A1 through C1+ on the Common European Framework of Reference for Languages (CEFR). Materials spanning several levels went into a separate “Mixed” group. Those that could not be assessed were marked “Unrated.”
The evidence for assigning levels, from most to least reliable, was:
- An explicit book number or level in the path, such as a New Concept book number or a RAZ letter level.
- The seller's own level labels.
- School grades or exam names in the path.
- The usual target audience of the show.
Children's animation retained the seller's original levels, representing language difficulty and suitable age ranges.
5. Step 3: Test on a Small Scale First#
Before transferring the full 16TB, I insisted on testing. The reason was simple: when a bulk operation goes wrong, the mistakes happen in bulk too.
For example, if the transfer used the ID of the entire share instead of an individual file ID, Netdisk might save all 56TB at once, instantly filling the 30TB account. From this point on, I set a firm rule: pass only individual file IDs, not folders.

The four test sets, from small to large:
- A small 200KB file: saved successfully, with the correct name, size, and md5.
- A 9.25GB archive: completed in 0.6 seconds.
- A 7.96GB video, targeting a nested folder path that did not yet exist: completed in 1.2 seconds, with the folders created automatically.
- A batch of 92 videos totaling 6.83GB: completed in 7.1 seconds.
The tests established three things:
- Transfers were very fast because they were server-side copies; even large files took only seconds.
- A single request could contain dozens of files. For the full run, I set a maximum of 90 files per request.
- The API's reported “transfer count” was unreliable. It always reported “success,” but the count was always 0. That meant every subsequent transfer had to be followed by reading the destination in Netdisk and checking each file.
After the tests passed, I cleared out old items in my Netdisk. That left over 30,000GB of available space, enough for these 16TB.
6. Step 4: Make a Plan and Transfer in Batches#
Fix the Plan in Advance#
AI first generated a complete transfer plan:
- 20,571 transfer requests, each corresponding to a destination folder and containing no more than 90 files.
- 20,032 destination folders.
- Nine batches, grouped by category and difficulty.
Before generating the plan, it also automatically checked for paths that were too long, folder names containing characters Netdisk did not allow, and files that would end up at the same destination. If even one check failed, no plan would be generated.
Use the Same Process for Every Transfer#

The core came down to three rules:
- Read back immediately after sending: after every transfer request, read the destination folder and compare each file's name, size, and md5.
- Read back before resending: if files were missing, wait and try again. Read the folder again before resending, and do not resend files already saved, to avoid duplicates.
- Stop when necessary: if the login expired, the API rejected a request, storage ran out, or five consecutive requests failed, the program stopped immediately instead of pushing on.
Every completed request was written to a progress log. Even if the program was closed partway through, restarting it would skip completed work and resume from the checkpoint.
Try 30 Requests Before the Full Run#
Before launching the full run, I tried another 30 requests totaling 404 files and 40.6GB. Every check passed. At an average of roughly four seconds per request, I estimated that the full run would take about 23 hours.
The Full Transfer: 29 Hours#

To prevent the computer from sleeping, AI chained the nine batches together using macOS's built-in sleep-prevention command, so they ran automatically one after another.
- The run started at 4:31 a.m. on November 7, and the last batch finished at 9:44 a.m. on November 8—about 29 hours in total, slightly longer than the estimated 23 hours.
- Speed depended mainly on the number of requests, not file sizes. The final “Optional Resources” batch contained 1,966GB but only 325 requests, and finished in 26 minutes. Batch 2 consisted of many small files and needed 9,555 requests, so it took 12 hours instead.
What Did I Do During This Time?#
Almost nothing. Every so often, I asked, “Is it done yet?” AI would read the progress file and tell me which batch it had reached, the percentage completed, and how much time remained.

There were nine temporary errors in total, such as API error codes 4 and 111, or a disconnected browser connection. Following the rules, the program waited, read back the destination, and then decided whether to resend. It recovered automatically from all of them. The final number of failed requests was 0.
7. A Detour: I Accidentally Closed Chrome#
While batch 6 was running, I accidentally closed the Chrome window used by the tool.

Here is what happened:
- The program for batch 6 exited immediately, and even reported “success” on exit. The outer process assumed batch 6 had finished and went on to batch 7.
- I quickly asked AI whether the process was still working. It checked and found that the transfers had not stopped: the tool had reopened Chrome itself, and batch 7 was running normally. But rather than trusting the word “success,” it checked each request against the plan and found that the final 34 requests from batch 6 were missing (1,032 files, 32GB).
- Running the catch-up job alongside the active batch would make them compete for the same browser, so we let batches 7, 8, and 9 finish first, then went back to fill the gap.
- The catch-up took only three minutes. Completed requests were skipped automatically. The request being processed when Chrome was closed was read back first; it had actually already been saved, so it was not resent.
The lesson for me: a program saying “success” is not enough. In the end, every request must be checked against the plan.
8. Step 5: Count, Reconcile, and Clean Up#
Counting: Nothing Missing#
The final count after the catch-up run:
Item | Planned | Actually completed |
|---|---|---|
Transfer requests | 20,571 | 20,571 |
Files | 281,208 | 281,208 |
Total bytes | 17,533,000,288,539 | An exact match |
Reconciliation: Check the Account's “Used Storage”#
Every file had been checked during transfer, but I wanted confirmation from another angle: if files had been missed or extra files saved, the account's used storage would not add up.

Here is the calculation:
- Before the transfer, Netdisk already used 661.1GB.
- Add the 16,329.0GB transferred in.
- Subtract the 24.0GB test folder I deleted along the way.
- Add the 2.8GB of duplicate copies described below.
- That gives an expected 16,968.9GB. Netdisk actually displayed 16,968.8GB—a discrepancy of less than 0.1GB.
Cleanup: Two Small Issues#
During reconciliation, I also found and dealt with two small issues.

- 78 duplicate copies totaling 2.84GB. In one picture-book video folder, every video had an extra copy with “(1)” in its name. The cause was a browser disconnection during batch 2: the program sent the request only once, and all files were already present when it read the folder back, but about ten minutes later, Netdisk executed the same transfer again. After confirming that the original files were intact, these 78 copies were moved to the Recycle Bin (not permanently deleted, so they could still be restored if needed).
- Four filenames were encoded. Netdisk had converted commas and exclamation marks in the filenames to “%2C” and “%21,” without changing the contents. I changed them back to their original names.
After cleanup, I checked every folder in question again: all 546 files in 13 folders matched, with no extra files.
9. The Final Result#
Now, when I open my Baidu Netdisk, /英语资源 contains:
- Core: 14 categories, each organized into L1–L6 difficulty levels, followed by individual collections.
- Optional: films with their original audio, documentaries, and so on.
There are 281,208 files in total, occupying 15.95TB. About 13,769GB of storage remains available.
AI also left me a lookup table recording each file's original path in the group and its current location in Netdisk. If I ever want to know where a particular file came from, I can look it up.
The entire task took a little over three days, with the machine doing most of the work: 38 hours scanning and 29 hours transferring. All I really had to do was scan the login QR code, make decisions, clear space, and occasionally ask, “Is it done yet?”
10. What I Learned#
- Get the inventory before making decisions. Classification and deduplication can be done using only filenames, paths, sizes, and md5 values, without downloading any files.
- Let AI write the rules and the program do the work. The point is not for AI to inspect 880,000 filenames one by one, but to identify patterns, turn them into rules, and let a program process everything in one run.
- Keep the original data unchanged and save results separately. Every step produces a new file that can be reviewed later.
- Start small and expand in stages. Small file → large file → 92 files at once → a trial of 30 requests → the full run. Move on only after each stage passes.
- An API saying “success” does not count; reading back and verifying does. This API always reported a transfer count of 0. Trusting that alone would have left me with no idea whether the files had actually been saved.
- Make every step resumable. Both scanning and transferring recorded their progress, so either could resume after an interruption or shutdown.
- Reconcile the numbers at the end. Only when file counts, byte totals, and used storage all match is the job truly done.
- Confirm risky operations first, and prefer reversible actions. Deletions went only to the Recycle Bin, and only after I approved them.
11. If You Want to Do This Too#
You will need:
- Enough Netdisk storage. My account had 30TB of membership storage.
- A computer that can stay on for a day or two. It must not sleep during the transfer, and you should not close the browser window opened by the tool (do not follow my example).
- An AI assistant that can write code and run commands, together with a Netdisk command-line tool.
A few reminders:
- This run used the API called by Netdisk's own web interface, not an official public API, so it may change in the future. Keep the request rate under control: one second between folders when scanning, and one second between requests when transferring.
- Always test any bulk operation in a separate test folder first, and expand only after confirming that everything works.
- Copyright in the resources belongs to the original creators. Please save them for personal learning only.
Appendix: Suggested Segments for a Spoken Presentation#
Segment | Suggested duration | Key message | Illustration |
|---|---|---|---|
Opening | 20 seconds | From 880,000 files, AI helped me select 280,000 English-learning files and automatically save them to Netdisk | 01 Cover |
Why I started | 30 seconds | There were too many disorganized resources; I only wanted English, and could never finish clicking through them manually | — |
Approach | 30 seconds | Five steps, without downloading a single file | 02 Five steps |
Reading the inventory | 40 seconds | Reading 86,000 folders took 38 hours; with the inventory, classification became possible | 03 One record |
Classification and deduplication | 60 seconds | 886,000 → 281,000, organized into five folder levels by category, difficulty, and collection | 04, 05, 06, 07 |
Testing | 40 seconds | Start with small tests, then large ones; discover that the API's reported count cannot be trusted | 08 Four test sets |
Transferring | 60 seconds | Over 20,000 requests, nine batches, 29 hours, zero failures, with every transfer read back and verified | 09, 10, 11 |
A detour | 40 seconds | Accidentally closing Chrome left 34 requests unfinished, found by checking each request and completed in three minutes | 12 Closing Chrome |
Reconciliation and cleanup | 40 seconds | Reconcile against used storage with a discrepancy of less than 0.1GB, and remove 78 duplicate copies | 13, 14 |
Lessons | 40 seconds | Inventory first, start small, trust read-back verification, and reconcile at the end | — |
Related articles

I Use a Mac to Control a Windows PC on My LAN
I sit at a Mac and use Moonlight to reach a Windows desktop on the LAN. This is how I pick a tool, install Sunshine, pair again, and what I checked after a reinstall when the host went offline and pairing returned 409. I have not confirmed that desktop streaming already worked this time.

How I Use AI on a Mac to Develop Fully Offline Windows Host Software
My working setup: the Mac goes online over Wi-Fi, and Codex / Claude Code run on the Mac. Windows holds the project, talks to devices, and runs the builds, with no Internet egress, talking to the Mac only over a LAN. This tutorial explains the design and includes deployment prompts I can give directly to an AI.

I put Aerial on my Xiaomi TV without flashing: Home key and standby recovery
The Xiaomi TV still works, but the stock home screen had become noisy. I installed Aerial 1.88 over ADB from a Mac, without flashing or rooting, then set up the Home button, standby revival, and a reversible boot-ad switch. This is a record from one MiTV-ANSP0.
Comments
No comments yet — be the first to leave one.