question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Folder structure for images

See original GitHub issue

In the latest version images are sent to the public folder under the images/ directory. This is great and an improvement on being placed into the root of the public directory.

However I’m wondering if there is configuration options to allow the path to be copied, for example if I have this structure:

  • images/
    • vendor/
      • lightbox/
        • close.png
      • image2.png
    • image1.jpg

These are currently all sent to the images/ folder. I’d like the ability to copy the structure over too, apparently the [path] or [folder] can be used but this results in:

Using [path] images/resources/assets/images/vendor/lightbox/close.png

Using [folder] images/lightbox/close.png

Is there anyway of getting only a substring of the path (so it excludes resources/assets/images in the [path])?

I realise I could simply move my images folder to the project root… but it would be nice to resolve this without doing that.

Thanks (I hope this is the best place to post this, otherwise I could move it to a forum…)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
danremollinocommented, Feb 21, 2017

@david-ridgeonnet sorry in advance if I’m not following you correctly, but try this…

.copy('resources/assets/images', 'public/images', false)

copy() takes a third parameter.

4reactions
KristofMorvacommented, Feb 3, 2017

Also, it’s not only for clarity, because for example I have a loading.gif in my application, but kartik-v/bootstrap-fileinput also has one, which overrides the original one, so it’d definitely be an improvement if these images would be moved into vendor/vendorname/imagename.ext as default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Properly Organize Your Photos - Photography Life
The Best Way to Organize Photos · 1) Locate All of Your Photographs · 2) Storage and Backup · 3) Create Main Folder...
Read more >
Folder Structure: Organising Your Photos - Biblino
A Properly planned folder structure is the first step in organising your photos for an efficient photography workflow. This guide will show you...
Read more >
Create a Digital Photo Core File Structure {DPO Challenge ...
The core file structure is basically the framework or “skeleton” of your digital photo organization system. It's a set of nested folders created...
Read more >
How Should You Organize Your Photos? Try One of These 5 ...
Organizing your photos with tags, instead of a folder structure, might appeal to you if the idea of sorting photos into folders sounds...
Read more >
Using a topic-based folder structure for cataloging images
Think of it as storing all the same types of activities in the same folder structure. For example, in the Holiday Photos folder,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found