Skip to content

Update createFileAndPaths function to work on Windows#140

Merged
dgrammatiko merged 1 commit intottc-freebies:4.0.0from
sashau:windows_path_fix
Feb 25, 2022
Merged

Update createFileAndPaths function to work on Windows#140
dgrammatiko merged 1 commit intottc-freebies:4.0.0from
sashau:windows_path_fix

Conversation

@sashau
Copy link
Copy Markdown
Contributor

@sashau sashau commented Feb 25, 2022

I was having the same issue as this comment:
#39 (comment)

I tracked down the issue to the ___data___ directory (and subsequent json files) not being created on Windows systems. The createFileAndPaths function was trying to create the directory /C:\<webroot>/media/cached-resp-images/___data___/ which was failing because of the leading /.

This pull request updates the createFileAndPaths function to also work on Windows.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 25, 2022

✔️ Deploy Preview for j4-responsive-images ready!

🔨 Explore the source changes: 20989d4

🔍 Inspect the deploy log: https://app.netlify.com/sites/j4-responsive-images/deploys/62181f1895debc0007e7c79a

😎 Browse the preview: https://deploy-preview-140--j4-responsive-images.netlify.app

@dgrammatiko
Copy link
Copy Markdown
Member

LGTM

@dgrammatiko dgrammatiko merged commit adf2152 into ttc-freebies:4.0.0 Feb 25, 2022
@dgrammatiko
Copy link
Copy Markdown
Member

Thanks

@sashau
Copy link
Copy Markdown
Contributor Author

sashau commented Feb 25, 2022

Thank you for a fantastic extension. It works really great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants