So, the problem is that the OP wants to download their repl’s source code. The source code obviously doesn’t take a lot of storage. However, a bunch of unnecessary stuff like the entire 1 GiB NVIDIA CUDA package that’s in the repl also gets zipped, which actually just prevents the repl from being zipped.
These unwanted files are inside hidden directories. So, to download just the source code, one would fork the repl. Then, show hidden files and delete them (it is much easier to delete hidden files/directories if you can see them). Now you can easily download the repl as zip because only the source code is left.
Am I assuming/misinterpreting anything, or does anything need clarification? (Including you @Firepup650, if you give a then please clarify your confusions or give a better solution, unless I’m really just being stupid.)
Note: downloading a repl as zip seems to include all files/directories that are not prefixed with a .
which is a convention for hidden files. The venv
folder would be included in the zip, and so many old repls are extremely annoying to zip.
So, for the actual solution, let’s avoid the XY problem by examining OP’s post a bit closer. The OP says their env broke and they want to transfer to a new repl. This is not necessary, and they only need to update the configuration.
First, optionally fork repl as a backup. Then, show hidden files. Copy the configuration from a new or recent python repl: .replit
and pyproject.toml
(remember what packages you installed). Delete replit.nix
, venv
, .config
, .cache
. Then, refresh, and install your packages. This should fix the environment, and doesn’t take that long to do.
This topic is really actually a feature request for a valid problem (though not a bug report). Cannot download entire folders easily, only files or the entire repl. Similar feature requests and topics are listed below:
Download Folders
Import from another Repl, download entire folder
How do you download replit folders to your system?
I experience this problem myself. There must be some sort of reason why replit has not implemented it, but they have not said what it is.