KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
871 stars 74 forks source link

"Delete old files" does not delete old files #237

Closed hellpe closed 9 months ago

hellpe commented 1 year ago

Describe the bug After removing a Markdown file from my Obsidian vault then running the export with "Delete Old Files" on, I can see that the HTML file related to the deleted Markdown file is still present in the export folder.

Operating System Fedora Silverblue 38

Capture d’écran du 2023-09-19 12-34-05

KosmosisDire commented 1 year ago

Thanks I'll look into this

TacoV commented 11 months ago

Same when I toggled "Make names web style" - all files then existed twice, one for each style

KosmosisDire commented 9 months ago

This should be fixed in 1.8.0. Let me know if it still does not work as expected and reopen the issue. If you find any new issues please submit a new issue :) Thanks!

hellpe commented 9 months ago

I'm still having a related issue in 1.8.0: the exporter gets stuck on "Delete old files", as shown below: image Here ate the contents of my export folder:

hellpe@fedora:~/Documents/carnet$ ls
 1-cours-de-master.html
 2-concepts.html
 3-études-de-cas.html
 4-bibliographie.html
 a-catalog-of-formats-for-digital-discomfort.html
 adam-curtis.html
 alain-supiot.html
 algocratie.html
 algorithme.html
'algorithmes-vers-un-monde-manipulé-(dörholt).html'
'all-watched-over-by-machines-of-loving-grace-(curtis).html'
 all-watched-over-by-machines-of-loving-grace.html
 alternumérisme.html
 annotations-de-pages-web.html
'anonymat-(en-ligne).html'
 applications-web-ou-natives.html
 arp-a.png
'asdn-51-les-données-de-la-démocratie-(samuel-goëta).html'
'au-secours,-mon-patron-est-un-algorithme-(cash-investigation).html'
 autodétermination-informationnelle.html
'aux-sources-de-l'\''utopie-numérique-(turner).html'
 bases-de-données.html
"bases-de-données-+-systèmes-d'exploitation.html"
 beavers-crying-wolf.html
 blockchains.html
 célia-izoard.html
 civic-tech.html
 cjce-6-novembre-2003-lindqvist.html
 cjue-16-juillet-2020-schrems-ii.html
 clodo.html
 cloud.html
 code-et-langage-informatique.html
 coltane.html
'comment-le-streaming-a-mangé-la-musique-(pergent-&-fanen).html'
'comment-le-streaming-a-mangé-la-musique-(sophian-fanen).html'
 composition-page-web.png
'contre-histoire-d'\''internet-(tréguer).html'
'contre-l'\''alternumérisme-(laïnae-&-alep).html'
 copyleft.html
 cory-doctorow.html
'culture-numérique-(cardon).html'
'cybermonde-l'\''avenir-c'\''est-maintenant-(dotan).html'
 cybernétique.html
'das-netz-(dammbeck).html'
 data-governement.html
"décision-d'adéquation.html"
'déclaration-d'\''indépendance-du-cyberespace-(barlow).html'
"dématérialisation-de-l'action-publique.html"
 digital-markets-act.html
 digital-services-act.html
 directive-police-justice.html
 documentations-sur-discord.html
 données-de-santé.html
'données-massives,-statistique-publique-et-mesure-de-l’économie-(blanchet-&-givord).html'
 doomerisme.html
 droit-des-données-administratives-et-e-administration.html
 droits-fondamentaux-et-sociétés-numériques.html
"économie-de-l'information-et-des-données-personnelles.html"
 économie-des-plateformes-et-des-réseaux.html
 edoardo-celeste.html
 edward-snowden.html
 enshittification.html
 entrepôts-de-données.html
 entrepôts-de-données-+-modèles-prédictifs.html
 evgeny-morozov.html
'ex0207-révélations-snowden,-10-ans-après-(cpu-carré-petit-utile).html'
 fédivers.html
 félix-tréguer.html
'frankenstream,-ce-monstre-qui-nous-dévore-(berson-&-pavillard).html'
 frankenstream,-ce-monstre-qui-nous-dévore.html
 frugalisme.html
 futurologues.html
'géopolitique-de-la-donnée-(bayart).html'
 hacker.html
 harvard-professor-lawrence-lessig-on-why-ai-and-social-media-are-causing-a-free-speech-crisis-for-the-internet.html
"here's-what-ethical-ai-really-means-youtube-0-19-38.jpeg"
 histoire-économique-et-sociale-des-ti.html
 identité-numérique.html
 idéologie-californienne.html
 ifconfig.png
 impacts-environnementaux-du-numérique.html
"indexation-et-recherche-d'information.html"
 index.html
 indieweb.html
 informatique-domestique.html
 intelligence-artificielle.html
 interopérabilité.html
 intervention-1-dpo.html
 intervention-1.html
 intervention-cnil.html
 introduction-au-droit-des-données.html
 ip-route.png
 jacques-ellul.html
 jaron-lanier.html
 kate-crawford.html
 kevin-kelly-daddy-issues.html
 kiwi-farms.html
'la-boîte-translucide-(jourlin).html'
 la-modération-des-contenus-en-ligne-essai-sur-une-régulation-de-la-conversation-mondiale.html
'la-‘science-des-données’-à-la-conquête-des-mondes-sociaux-ce-que-le-‘big-data’-doit-aux-épistémologies-locales-(dagiral-&-parasie).html'
'la-vie-privée-en-péril-(türk).html'
'le-capital-algorithmique-(folco-&-martineau).html'
'les-données-de-la-démocratie-(goëta).html'
'les-limites-à-la-croissance-(club-de-rome).html'
'le-tout-plutôt-que-la-partie-big-data-et-pluralité-des-mesures-de-l’opinion-sur-le-web-(kotras).html'
'le-tout-plutôt-que-la-partie.-big-data-et-pluralité-des-mesures-de-l’opinion-sur-le-web-(kotras).html'
'l'\''hypothèse-cybernétique-(tiqqun).html'
 lib
 licences-permissives.html
"l'instant-cybernétique.html"
 logiciel-libre.html
 luddites.html
'machines-in-flames-(dekeyser-&-culp).html'
"management-des-systèmes-d'information.html"
 massachusetts-institute-of-technology.html
 mesures-techniques-de-protection.html
 métaux-et-terres-rares.html
 minerais-rares.html
 modèles-économiques-des-biens-immatériaux.html
 modèles-prédictifs.html
 neutralité-technologique.html
'nos-données-personnelles-valent-de-l'\''or-!-(cash-investigation).html'
 notions-et-principes-juridiques.html
 olivier-ertzscheid.html
 open-data.html
 open-source.html
"pandora's-vox.html"
 parcours-de-la-requête.png
 pascal-robert.html
 pasted-image-20231009231323.png
 pasted-image-20231009231329.png
 pasted-image-20231015143143.png
 pasted-image-20231108155546.png
 pasted-image-20231130101542.png
 pasted-image-20231130102007.png
 pasted-image-20231204091856.png
 pasted-image-20240204170953.png
 permacomputing.html
 perroquet-stochastique.html
 ping.png
 post-open-source.html
 pourquoi-les-réseaux-sociaux-créent-ils-autant-de-dangers-
'pourquoi-les-réseaux-sociaux-créent-ils-autant-de-dangers-?-peut-on-y-faire-quelque-chose-?-(oana-goga).html'
 présenter-l’ia-comme-une-évidence,-c’est-empêcher-de-réfléchir-le-numérique.html
 projet-de-loi-de-régulation-de-l’espace-numérique.html
 propriété.html
 publications-numériques.html
 publicité-en-ligne.html
 quantification.html
 quelle-place-pour-la-data-science-et-les-big-data-au-sein-de-la-statistique-publique-
'quelle-place-pour-la-data-science-et-les-big-data-au-sein-de-la-statistique-publique-?-(combes-&-givord).html'
'rapport-sur-l'\''informatisation-de-la-société-(nora-et-minc).html'
 rdp.png
 règlement-général-sur-la-protection-des-données.html
 réseaux-sociaux-décentralisés.html
'révélations-snowden,-10-ans-après-(cpu-carré-petit-utile).html'
'rgpd-(cours).html'
 rgpd.html
 richard-stallman.html
"s1-sujets-d'oral.html"
 séminaire-la-modération-des-contenus-en-ligne-essai-sur-une-régulation-de-la-conversation-mondiale.html
 séminaire-la-modération-des-contenus-en-ligne.-essai-sur-une-régulation-de-la-conversation-mondiale.html
 shoshanna-zuboff.html
 smallweb.html
 socioéconomie-des-plateformes.html
 sociologie-de-la-quantification.html
 sociologie-des-infrastructures.html
'sociologie-du-numérique-(boullier).html'
 statistique-et-qualité-de-la-donnée.html
"surveillance-de-l'espace-public.html"
 tcp-ip.html
 techno-scepticisme.html
 ted-kaczynski.html
 télétravail.html
'the-california-problem-(ryerson).html'
 the-internet-con-how-to-seize-the-means-of-computation.html
 the-internet-con.-how-to-seize-the-means-of-computation.html
'the-internet-enabled-mass-surveillance-a.i-will-enable-mass-spying-(schneier).html'
'the-internet-enabled-mass-surveillance.-a.i.-will-enable-mass-spying-(schneier).html'
 theodore-kaczynski.html
 the-truth-is-paywalled-but-the-lies-are-free.html
 timnit-gebru.html
'transformer-le-numérique-(derrac).html'
'underutilized-(salvaggio).html'
'underutilized-&-the-hypothetical-image-(salvaggio).html'
 vidéosurveillance.html
'we'\''re-sorry-we-created-the-torment-nexus-(strauss).html'
'what-ethical-ai-really-means-(philosophytube).html'
KosmosisDire commented 9 months ago
 pourquoi-les-réseaux-sociaux-créent-ils-autant-de-dangers-
'pourquoi-les-réseaux-sociaux-créent-ils-autant-de-dangers-?-peut-on-y-faire-quelque-chose-?-(oana-goga).html'

I am slightly confused what files there are here. is pourquoi-les-réseaux-sociaux-créent-ils-autant-de-dangers- a folder? Or a file?

Why do some of them have single quotes? (')

hellpe commented 9 months ago

Both are files. The first one does not exist though, as you can see in my ls output.

Why do some of them have single quotes? (')

I guess those are automaticlaly generated on titles containing parentheses?

KosmosisDire commented 9 months ago

Well but one of the files has no file extension

KosmosisDire commented 9 months ago

If you delete your whole export and re-export everything, can you then reproduce it by removing a file again?

hellpe commented 9 months ago

Well but one of the files has no file extension

My bad, I gave you misleading information (the first line was indeed a folder). Sorry about that

If you delete your whole export and re-export everything, can you then reproduce it by removing a file again?

I tried just that and the issue did not occur again.

KosmosisDire commented 9 months ago

Okay sounds good, were you modifying an export that previously existed before the update? If so that is probably why. If you encounter the issue again though please reopen this. Thanks! :)