Publii icon indicating copy to clipboard operation
Publii copied to clipboard

modified emptyOutputDir in a way that we can now avoid removing files…

Open SKOSCIE opened this issue 4 years ago • 4 comments

modified emptyOutputDir in a way that we can now avoid removing files listed in the settings. This is especially helpful when we share same repository and have nested websites / systems. Normally Publii would delete whole content of the output DIR except media folder.

image

SKOSCIE avatar Nov 18 '20 15:11 SKOSCIE

Hi, thank you for your pull request - I will analyze it, add improvements and then I will include it in the next Publii release :)

dziudek avatar Dec 14 '20 17:12 dziudek

Does this solve #691 ? I would coin that as extremely urgent, as any new user can potentially be a victim of Publii (as per @superboum 's comment). Don't alienate users :o

Adrien-Luxey avatar Feb 04 '21 17:02 Adrien-Luxey

@Adrien-Luxey - no it is not a solution, but I will address that issue in the upcoming v.0.38

dziudek avatar Feb 04 '21 22:02 dziudek

Hi,

I have reanalysed this feature and I have discovered that it is not necessary as it duplicates the File Manager functionality.

This feature is dedicated to a case when user adds some files to the output directory. Publii removes content of this directory on every sync. But in fact user should not add files to the output directory manually at all. Instead user should use File Manager and there put files to include in the final output.

In my opinion we should avoid such situations and promote a proper way of adding files.

If I am wrong - please correct me :) I just want to avoid adding of functionality which duplicates existing features to keep the Publii UI as simple as possible :)

dziudek avatar Mar 06 '21 12:03 dziudek