Answers.Body: <p>You can use Yii aliases in the feed URL setting.</p>
  <p>In the example below, I used the <code>@storage</code> alias which resolves to <code>/var/www/html/craft/storage</code> on my server, and then added the path to my file, relative to the Craft storage folder. As a result, the feed URL is the absolute path: <code>/var/www/html/craft/storage/import/business-units.csv</code>.</p>
  <p>You can use any of the aliases listed on the <code>/admin/utilities/system-report</code> page.</p>
  <p>Example: <code>@root/../resources/file.csv</code>, if your CSV is located in  the parent directory of your Craft directory.</p>
  <p><a href="https://i.sstatic.net/gyr7N.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gyr7N.png" alt="Screenshot of the settings page of a FeedMe feed" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-30T17:08:41.627Z
Answers.Text: Thanks @nstCactus - will try with an alias and see if that works but it really does seem quite random. For example having set to run hourly have had two instances in the last 24 hours where it has worked fine and the remaining 22 have reported being unable to reach the specified file
Answers.UserDisplayName: Cole Henley
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-30T10:48:35.423Z
Answers.LastActivityDate: 2021-07-30T10:48:35.423Z
Answers.UserDisplayName: nstCactus
Body: <p>Got a Feed Me feed set up to scrape a CSV that is being added to the server via FTP daily. The FTP is via a separate user account and the folder the file is being saved to is accessed via a symlink on the server.</p>
  <p>The file is set in Feed Me as a relative path: <code>../resources/file.csv</code></p>
  <p>We set up a CRON job to hit the Feedme endpoint on an hourly basis but it is throwing an  error:</p>
  <pre><code>Unable to reach ../resources/file.csv. Message: cURL error 6: Could not resolve host each time
  </code></pre>
  <p>However I can access the element map just fine via the CP (showing it can read/access the file) and if I trigger the feed via the CP then it works okay.</p>
  <p>Any thoughts on why triggering via a CRON/Direct Feed URL would not work but via the CP is fine?</p>
  <p>Cole</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-30T10:18:16.570Z
Comments.Text: Where is this folder, relative to your project's root (where your `craft` executable is)?
Comments.UserDisplayName: Oli
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-30T17:09:51.233Z
Comments.Text: @Oli the folder is in the same application folder as the craft executable. However the file it is reading is being written to by another (FTP) user although the both users belong to the same group on the server
Comments.UserDisplayName: Cole Henley
Tags: <plugin-feedme>
Title: Feed Me accessing resource
ThreadText: # Feed Me accessing resource
  
  (Asked by: username_0 on 2021-07-29)
  
  Got a Feed Me feed set up to scrape a CSV that is being added to the server via FTP daily. The FTP is via a separate user account and the folder the file is being saved to is accessed via a symlink on the server.
  
  The file is set in Feed Me as a relative path: `../resources/file.csv`
  
  We set up a CRON job to hit the Feedme endpoint on an hourly basis but it is throwing an error:
  
  ```
  Unable to reach ../resources/file.csv. Message: cURL error 6: Could not resolve host each time
  
  ```
  
  However I can access the element map just fine via the CP (showing it can read/access the file) and if I trigger the feed via the CP then it works okay.
  
  Any thoughts on why triggering via a CRON/Direct Feed URL would not work but via the CP is fine?
  
  username_0
  
  **Tags:** plugin-feedme
  
  > **Comments:**
  > **username_1**: Where is this folder, relative to your project's root (where your `craft` executable is)?  
  > **username_0**: @username_1 the folder is in the same application folder as the craft executable. However the file it is reading is being written to by another (FTP) user although the both users belong to the same group on the server  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-07-30. Score: 1
  
  You can use Yii aliases in the feed URL setting.
  
  In the example below, I used the `@storage` alias which resolves to `/var/www/html/craft/storage` on my server, and then added the path to my file, relative to the Craft storage folder. As a result, the feed URL is the absolute path: `/var/www/html/craft/storage/import/business-units.csv`.
  
  You can use any of the aliases listed on the `/admin/utilities/system-report` page.
  
  Example: `@root/../resources/file.csv`, if your CSV is located in the parent directory of your Craft directory.
  
  [![Screenshot of the settings page of a FeedMe feed](https://i.sstatic.net/gyr7N.png)](https://i.sstatic.net/gyr7N.png)
  
  > **Comments:**
  > **username_0**: Thanks @username_2 - will try with an alias and see if that works but it really does seem quite random. For example having set to run hourly have had two instances in the last 24 hours where it has worked fine and the remaining 22 have reported being unable to reach the specified file  
  
  ---
  
  