Custom folder structure fails randomly! #3415
Unanswered
hesamzakerirad
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A bit context
I have been using Spatie Media Library on a production system for over 2 years now, and it's been working flawlessly. I changed the folder structure from the beginning to meet the system's needs.
This is my folder structure:
The problem
Recently I've been getting this error:
ftp_mkdir(): can't create directory: file exists
and it's been happening randomly for the last couple of weeks. (for some products, it's fine and for some isn't.)
I've checked, and it seems that the
CustomPathGenerator
that has been working with no problem, suddenly creates nested folders for no apparent reason.This is the
CustomPathGenerator
class that I created 2 years ago:I think the reason that this error (
ftp_mkdir(): can't create directory: file exists
) happens is because of the duplicate folder created somewhere.I would REALLY appreciate it if you can shine some light on this or share your own experience regarding this.
Beta Was this translation helpful? Give feedback.
All reactions