tag:help.appveyor.com,2012-11-13:/discussions/questions/1574-is-it-possible-to-ignore-specific-folders-when-fetching-from-a-tfs-repositoryAppVeyor: Discussion 2018-08-25T01:59:16Ztag:help.appveyor.com,2012-11-13:Comment/376598832015-08-14T14:06:52Z2015-08-14T14:06:54ZIs it possible to ignore specific folders when fetching from a TFS repository?<div><p>We have a fairly large project repository and it a is taking
quite a while to fetch the contents during the build. However,
majority of the directories in the repository are not relevant to
building the project. Is there any way to ignore specific folders
in the repository?</p></div>Tom Kowalskitag:help.appveyor.com,2012-11-13:Comment/376598832015-08-14T15:12:22Z2015-08-14T15:12:22ZIs it possible to ignore specific folders when fetching from a TFS repository?<div><p>Hi Tom,</p>
<p>VSO API allows fetching specific directories (this is what
currently happening), but not ignoring them. Try moving those
resources to a separate repo?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/376598832015-08-14T15:14:46Z2015-08-14T15:14:46ZIs it possible to ignore specific folders when fetching from a TFS repository?<div><p>Is it possible to fetch from multiple specific directories
then?</p></div>Tom Kowalskitag:help.appveyor.com,2012-11-13:Comment/376598832015-08-14T18:13:13Z2015-08-14T18:13:13ZIs it possible to ignore specific folders when fetching from a TFS repository?<div><p>Technically yes (though it's not implemented in AV), but what
folders structure would you have in that case? I mean, say, main
repo in $/repos/projectA and other stuff should be in dir on the
same level, kind of $/repos/stuff?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/376598832015-08-14T19:05:02Z2015-08-14T19:05:02ZIs it possible to ignore specific folders when fetching from a TFS repository?<div><p>Here is an example of our repo structure:</p>
<p>$/TeamProject/Documentation $/TeamProject/ProjectLibrary
$/TeamProject/ProjectRestApi $/TeamProject/ProjectConsole</p>
<p>It would be great if we could just fetch the "ProjectRestApi"
and "ProjectLibrary" directories. Currently we have to grab the
whole "TeamProject" directory which is over a gig and takes a
considerable amount of time just to fetch it. What is needed for
the build is in just a few folders and is only about 5% of the
"TeamProject" directory size. Thanks</p></div>Tom Kowalskitag:help.appveyor.com,2012-11-13:Comment/376598832015-08-14T20:29:02Z2015-08-14T20:29:02ZIs it possible to ignore specific folders when fetching from a TFS repository?<div><p>As an idea you can point your AppVeyor project to
<code>ProjectRestApi</code> and then during the build download
"ProjectLibrary" using VSO API with Basic authentication: <a href="https://www.visualstudio.com/integrate/api/tfvc/items">https://www.visualstudio.com/integrate/api/tfvc/items</a></p>
<p>Let me know if you need help with API.</p></div>Feodor Fitsner