# Where is the working/repos directory?

**URL:** <https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015>\
**Category:** Build Environment\
**Created:** [August 19, 2019, 1:43pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015 "2019-08-19T13:43:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![A-312](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a-312/32/23029_2.png) [@A-312](https://discuss.circleci.com/u/A-312)\
**Post date:** [August 19, 2019, 1:43pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/1 "2019-08-19T13:43:38Z")

</div>

Hi,

I search where is my working/repos directory because I got `No such file or directory`.

With [my config](https://github.com/A-312/zds-site/blob/9edbeee13c4181af4b9d5c3988ee3352a2a875cf/.circleci/config.yml#L17#L27), I tried to run a script present in my repo but I got [No such file or directory](https://circleci.com/gh/A-312/zds-site/17).

I searched on google and the doc but I didn’t found and I don’t understand why. Do you know why I got this error ?

---

<div class="post-metadata">

**Author:** ![ScottW](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/scottw/32/22363_2.png) [@ScottW](https://discuss.circleci.com/u/ScottW)\
**Post date:** [August 19, 2019, 1:49pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/2 "2019-08-19T13:49:10Z")

</div>

If `working_directory` is not specified it will default to `~/project/`. Otherwise, you can set `working_directory` to specify the location to work from.

More information on `working_directory` is here.

---

<div class="post-metadata">

**Author:** ![A-312](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a-312/32/23029_2.png) [@A-312](https://discuss.circleci.com/u/A-312)\
**Post date:** [August 19, 2019, 1:57pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/3 "2019-08-19T13:57:26Z")

</div>

I don’t understand how I can use `working_directory` I tried with `zds-site/` and `project/`

- [https://github.com/A-312/zds-site/commit/d94483414d3dc9451e1e8bad3d30fcd1e0dc8f08#diff-1d37e48f9ceff6d8030570cd36286a61](https://github.com/A-312/zds-site/commit/d94483414d3dc9451e1e8bad3d30fcd1e0dc8f08#diff-1d37e48f9ceff6d8030570cd36286a61)
- [https://github.com/A-312/zds-site/commit/c004d400a87421f3fa52f9c669dedf3a3c19f590#diff-1d37e48f9ceff6d8030570cd36286a61](https://github.com/A-312/zds-site/commit/c004d400a87421f3fa52f9c669dedf3a3c19f590#diff-1d37e48f9ceff6d8030570cd36286a61)

---

<div class="post-metadata">

**Author:** ![ScottW](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/scottw/32/22363_2.png) [@ScottW](https://discuss.circleci.com/u/ScottW)\
**Post date:** [August 19, 2019, 2:07pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/4 "2019-08-19T14:07:26Z")

</div>

Sorry, forgot to provide the link for `working_directory`, it’s here: [https://circleci.com/docs/2.0/configuration-reference/#executors-requires-version-21](https://circleci.com/docs/2.0/configuration-reference/#executors-requires-version-21)

To prevent further confusion, just remove the `.` from the path.

Example:

```auto

# ~/.circleci/config.yml
version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.6.8
      - image: circleci/mysql:5.6
    steps:
      - run:
          name: Setup Environment Variables
          command: echo "export ZDS_TEST_JOB=zds.tutorialv2" >> $BASH_ENV
      - run:
          name: Setup Environment Variables
          command: ls
      - run:
          name: before_install
          command: source /scripts/travis_header.sh # Need to be sourced
      - run:
          name: install
          command: /scripts/install_zds.sh --answer-yes --detect-os-version --travis-output $zds_install_argument
      - run:
          name: script
          command: source /scripts/travis_run.sh

```

---

<div class="post-metadata">

**Author:** ![A-312](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a-312/32/23029_2.png) [@A-312](https://discuss.circleci.com/u/A-312)\
**Post date:** [August 19, 2019, 2:25pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/5 "2019-08-19T14:25:44Z")

</div>

I got the same result : [https://circleci.com/gh/A-312/zds-site/18#config/containers/0](https://circleci.com/gh/A-312/zds-site/18#config/containers/0)

---

<div class="post-metadata">

**Author:** ![A-312](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a-312/32/23029_2.png) [@A-312](https://discuss.circleci.com/u/A-312)\
**Post date:** [August 19, 2019, 4:18pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/6 "2019-08-19T16:18:25Z")

</div>

I find why :

```auto
version: 2
jobs:
  build:
    working_directory: ~/zds-site
    docker:
      - image: circleci/python:3.6.8
      - image: circleci/mysql:5.6
    steps:
      - checkout

```

`checkout` 😃

---

<div class="post-metadata">

**Author:** ![ScottW](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/scottw/32/22363_2.png) [@ScottW](https://discuss.circleci.com/u/ScottW)\
**Post date:** [August 22, 2019, 8:50pm UTC](https://discuss.circleci.com/t/where-is-the-working-repos-directory/32015/7 "2019-08-22T20:50:16Z")

</div>

Closed on August 22, 2019, 8:50pm UTC


