Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Replace everything before and expanded_dir to get file name #42

Closed
wants to merge 1 commit into from

Conversation

cjsewell
Copy link

I had an issue in Windows where src_path contained the full path to the source file, resulting in an incorrect file_name.
eg
src_path was C:/xampp/htdocs/myproject/bower_components/jquery/dist/jquery.js
file_name was C:/xampp/htdocs/myproject//dist/jquery.js

Replacing everything before expanded_dir fixed the issue...... not sure if that's the best place to do it

I had an issue in Windows where ```src_path``` contained the full path to the source file, resulting in an incorrect ```file_name```.
eg
```src_path``` was  ```C:/xampp/htdocs/myproject/bower_components/jquery/dist/jquery.js```
```file_name``` was ```C:/xampp/htdocs/myproject//dist/jquery.js```

Replacing everything before ```expanded_dir``` fixed the issue...... not sure if that's the best place to do it
@artch
Copy link
Contributor

artch commented Dec 12, 2014

This case is better handled in #46

@cjsewell cjsewell closed this Sep 4, 2015
@cjsewell cjsewell deleted the patch-1 branch September 4, 2015 06:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants