New to development, have some questions

Heyo! I'm starting to develop a extension for blueprint, but I need it to make a directory and save a file or write a file to a specific place however I'm not sure how to do it or if its even possible. Can anyone help me?
6 Replies
ℓєzєтнσ
ℓєzєтнσOP12mo ago
would be great if you could reply w/ ping on response
Cam
Cam12mo ago
$blueprint There's a write/read file iirc Yeah, fileMake, fileRead and fileWipe
ℓєzєтнσ
ℓєzєтнσOP12mo ago
ty cam!!!
Emma
Emma12mo ago
@ℓєzєтнσ Additionally, if you are editing existing files, consider using search-and-replace in install and remove scripts to avoid conflicts. If you are using Laravel anywhere, you can also save, edit and modify files in the isolated extension filesystem linked to domain.ext/fs/identifier. Read the Laravel documentation for more info. Behavior of BlueprintExtensionLibrary's fileMake(), fileRead() and fileWipe() is set to slightly change in the upcoming update.
ℓєzєтнσ
ℓєzєтнσOP12mo ago
does this also have the ability to create directories?
Emma
Emma12mo ago
If you are working within your assigned extension filesystem, you can use Laravel's APIs to create whatever. (File uploading from the admin panel can also be done with Laravel filesystems)

Did you find this page helpful?