Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichelle Rosenstock
Courses Plus Student 3,256 Pointsloss of index.html doc gets deleted when img folder is created
How do I add the img folder without deleting my index.html document? When I add this folder, and drag the uploaded images here, I no longer see my index.html on the tree view. I'm able to create a new html doc and paste my work that I saved in a notepad. Ideally i'd like to be able to make new folders or files without having previously-created ones deleted. Thank you very much for your help
2 Answers
Steven Parker
231,198 PointsAfter you re-arrange your files, try doing a refresh (from the right-click menu) of the files area.
Jason Anders
Treehouse Moderator 145,860 PointsHey Michelle,
Without physically seeing what is happening directly on your computer, this one is almost impossible to troubleshoot for you, because what you are describing should not be happening in any circumstance.
I'm assuming you are talking about Workspaces, which does work very much like many of the more common Text Editors. You'd create a new file/folder either by right-clicking in the File Tree or by going under File > New Folder (etc).
From there you should be able to copy/paste files or drag/drop file anywhere you want without affecting any of the other files already present. I honestly cannot think of any scenario that a file/folder would be lost by adding another file/folder.
If you are in Workspaces, try right-clicking in the tree and selecting "Refresh" (but I don't think that's the issue).
I'm sorry I couldn't be more help. For now, maybe select the file you want from the finder and copy... then just paste the file in the tree instead of drag/drop. If this is Treehouse's Workspace, and it still happens, contact the Treehouse Support Team and hopefully they will be able to figure this out for you.
Keep Coding! :)
Michelle Rosenstock
Courses Plus Student 3,256 Pointsthank you for the encouragement, Jason, I appreciate it.
Michelle Rosenstock
Courses Plus Student 3,256 PointsMichelle Rosenstock
Courses Plus Student 3,256 Pointsthank you both for your help. refreshing in workspace fixed the problem :)