Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7702593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:15:44+00:00 2026-05-31T23:15:44+00:00

We have a Perforce depot path called Shared with a number of subfolders, all

  • 0

We have a Perforce depot path called “Shared” with a number of subfolders, all just containing zero-length dummy files, no real source files, to create a specific folder structure in the workspace. We want to have this same folder structure a second time, this time called “Artifacts”.

Is there a way to map one depot path into two workspace locations using Perforce?

UPDATE: Since there is no way to copy one depot path into two workspace locations using Perforce, I had to go for some other solution. This is a good thing because having a shadow copy of a depot path has a smell anyway. Now I introduced a “Pre build” step resetting all archive flags in the Shared folder. And I’ve added a “Post build” step xcopiing all files with archive flag set into an Artifacts folder. That’s exactly meeting my requirements without having to solve the above question.

Thanks for your answers and comments.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:15:45+00:00Added an answer on May 31, 2026 at 11:15 pm

    No, you cannot.

    Perforce mapping is 1:1. Think about it. If you were to edit a file in both locations, how should Perforce handle that? It gets very complicated when a single file in the Perforce depot is represented by two locations in your workspace, and rather than deal with that complexity, they’ve decided not to allow it.

    Now, I would actually have preferred to have a feature where you can have a readonly mapping to allow just what you need without breaking the underlying 1:1 SCM functionality, but that’s probably taking Perforce too far in a direction they don’t want to invest effort into.

    By far my biggest gripe, however, is that Perforce will not give any errors if you map a location to two workspace locations. It will simply ignore one of them (the second one, I think). This leads to a lot of confusion and is pretty poor behaviour from Perforce for what is a fairly obvious mistake.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a perforce depot I have an area containing stable branches, and an area
In a branch spec, I have the following view: //depot/dev/t/a/g/... //depot/dev/t/r/g/... -//depot/dev/t/a/g/p/o*/... //depot/dev/t/r/g/p/... Perforce
I have various custom binary files stored in perforce and for many of the
we are using Perforce for source configuration management and I have just started to
I have troubles getting the latest version from the perforce server . The depot
I have a CL number, and I want the CL number for all change
I have currently 3 codelines in my perforce depot Main Development Release The idea
A number of people in my organization have different email names from perforce names,
I have a number of files checked out with changes ready to submit. I
In Perforce P4V, I'd like to do a search for all changelists that have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.