Categories
Tech Art

Perforce “Cannot mkdir” Error

I ran into an issue setting up my own Perforce server recently where I could not submit local files to a depot I had created manually. Perforce threw all manner of errors including “cannot mkdir <depotname>” etc. etc. etc. Looking online, it seemed like the issue ran much deeper than it actually was. The problem, I found out, was that when I made the new depot I had set its mapping as “//<depotname>/…”, which is wrong. All depot mappings in Perforce need to be “<depotname>/…” because they are mapped to the p4root directory.