# Files not copied back by workspace rules

**URL:** <https://www.finalbuilder.com/forums/t/files-not-copied-back-by-workspace-rules/5041>\
**Category:** Discussion\
**Created:** [August 12, 2013, 9:17am UTC](https://www.finalbuilder.com/forums/t/files-not-copied-back-by-workspace-rules/5041 "2013-08-12T09:17:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [August 12, 2013, 9:17am UTC](https://www.finalbuilder.com/forums/t/files-not-copied-back-by-workspace-rules/5041/1 "2013-08-12T09:17:35Z")

</div>

I am trying to get a few files back into the workspace. Here are my workspace rules:

#Server to agent rules  
#-http://buildserver.catenalogic.com/Catel/ci/configwizard/stages/CI#--------------------------------------------------  
#copy output from previous stages to agent  
/Output\*\* \> /  
  
#---------------------------------------------------  
#Agent to server rules  
#---------------------------------------------------  
#copy output from the agent to the server  
/ \< /Output\*\*  
Output \< $Source.Catel\_develop$\output\release\*\*  
  
#---------------------------------------------------

Then the output looks like this:

_Started syncing files from the agent to the server.  
Workspace Syncing  
Using UNC Transport.  
/ \< /Output\*\*  
Output \< C:\CI\_WS\Ws\25\Source\Catel\_develop\output\release\*\*  
0 files found.  
\_\_variables \< \_\_variables\*  
Finished syncing files from the agent to the server._

When I navigate to&nbsp;_C:\CI\_WS\Ws\25\Source\Catel\_develop\output\release\_&nbsp;I get the directory with lots of subdirectories.

What am I doing wrong that it keeps saying that 0 files are found.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 13, 2013, 4:54am UTC](https://www.finalbuilder.com/forums/t/files-not-copied-back-by-workspace-rules/5041/2 "2013-08-13T04:54:43Z")

</div>

```

```

```
Output < $Source.Catel_develop$\output\release\**
```
  

does not find any files because $Source.Catel\_develop$&nbsp;is expanded to&nbsp;C:\CI\_WS\Ws\25\Source\Catel\_develop&nbsp;and Continua is expecting the rules to be relative to the workspace folder.

There is some code in Continua to remove the workspace folder from the start of each rule but this is not working. A fix for this will be in the next build.&nbsp;

Meanwhile the following rule will work as you expect:

```
Output < \Source\Catel_develop\output\release\**
```

---

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [August 14, 2013, 8:01am UTC](https://www.finalbuilder.com/forums/t/files-not-copied-back-by-workspace-rules/5041/3 "2013-08-14T08:01:50Z")

</div>

Works like a charm, thanks!
