Subfolders and Organization/Optimization

WE NEED SUBFOLDERS. (or at least I guess I do)

I have to emphasize that loud and clear because it seems that there is no way to nest folders in the editor. The code that I am importing has that in it and its very important that it is this way so the code works. If this feature already exists, I *must* know about it because I've been struggling. I like this website a lot and it feels limited by the fact that there is no nesting.

  • riddim_dubstep

Uh yeah you can make folders by just creating a new file called "<folder name>/<file name>". For folders inside of folders, just add another /

2 Likes

Hey, are you sure that Glitch supports subfolders in editor.

:point_up: I’ve used subfolders this way before. count me as sure

1 Like

‘Thanks, my mistake, ya’ll. I figured it out shortly after this.
(still needs the ability to drag an already created folder into another folder, would make it less unintuitive)’

1 Like

Instructions on how to use folders are written on the file creation dialog :slight_smile:

I keep getting: We’re sorry, something went wrong! Please try again, or try refreshing the editor.

Update: Never mind, after half a dozen refreshes, it’s working:)

Nested folders are already supported since the dawn of Glitch.

  1. create your parent folder by using {NAME OF YOUR FOLDER}/temp.txt
  2. create a subfolder with an another temp file by clicking on the three dots next to the folde rname in the tree, and click “create a file” as such: {NAME OF YOUR FOLDER}/{NAME OF YOUR SUBFOLDER}/maybeNotA.tmp. You can later delete the temporary files.

Using Terminal (may not work):

mkdir ./all/of/your/sub/directories/

 
Using Python with Terminal:

python3 -c "__import__('os').makedirs('./all/of/your/sub/directories/')"
1 Like

hi there, and welcome! please keep issues not related to the main topic in a separate topic :slight_smile: you can create a new topic by clicking “new topic” in the homepage

1 Like

or just by creating a file with this name: folder 1/folder 2/folder 3/…/file.txt

Oh, I thought you had to create them one-by-one :sweat_smile:

1 Like

how is it related? also you just leaked your phone number and email

Thanks for the heads up. For some reason, I thought I was replying to an internal customer support email or something like that.

Anyway, the topic was about nesting folders in the editor. I replied because I was also having trouble with it. It seemed to resolve itself after a lot of refreshing. I think my post will be useful for anyone else having this same issue.