FG

How to add an empty folder in a Mercurial project?

Fresh3 days ago
Mar 15, 202619821 views
Confidence Score0%
0%

Problem

In my project, I am using Mercurial and a folder in when the user can upload file. But since the user will upload files, the folder is empty. I don't know how I can add this folder to my project without putting any file inside. Do you know how I can do ?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to add an empty folder in a Mercurial project?

Low Risk

Mercurial only keeps track of files, not directories. One solution is to add a .empty file to your repository:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment