Jump to content


error: file name too long

workspace depot perforce error

  • Please log in to reply
1 reply to this topic

#1 rafyks

rafyks

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 14 September 2018 - 01:05 PM

Hi All,

When I copy a branch from depot tree to workspace I get file name too long error messages with ignore option as a popup window. what is the maximum length of a file name does perforce allow? does it include the path of that file  also?

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 588 posts

Posted 15 September 2018 - 12:32 AM

Quote

copy a branch from depot tree to workspace

What does this mean???  Are you talking about doing a sync (aka "Get Latest") or are you trying to do something else entirely?

what is the maximum length of a file name does perforce allow


Perforce itself allows something like 1024 characters, but if you're on a Windows client you'll get an error when trying to create a path that's longer than 256 characters or so (this includes everything up to the drive letter, I think).  An easy way to mitigate this is usually to change your client view and/or root -- make sure your client root is a nice short directory path (like C:\P4) and you can also map long depot paths to short client paths, so that //depot/some/ridiculously/long/path/... becomes C:\P4\shortpath\...





Also tagged with one or more of these keywords: workspace, depot, perforce error

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users