It is a challenge to use folder names to store category info. One of them is special characters - I built an encoder / decoder so that I can encoding filename to save all characters including special characters like '?','*' ...
This video will share with you how was that implemented.
Resources
Discord server for Code w/ Saar: / discord
Source Code for FileUtility on GitHub: https://bit.ly/3Ckk6eI
NuGet package: https://www.nuget.org/packages/CodeWi...
Chapters
00:00 The concept of Encoding / Decoding
02:04 The issue of using directory to store information - filename constraints
04:47 Analysis types of issues
05:16 Design to encode invalid characters
09:15 Code to encode invalid characters
10:42 - Sub Topic: Regular Expression tester
11:30 - Sub Topic: Replacer of Regular Expression
13:07 Unit tests for invalid character encoding
13:54 Design to encode reserved filenames
15:27 Code to encode reserved filenames
15:54 Unit tests for reserved filename encoding
16:20 OC Principal: Open for Extension, Close for Modification + PathUtility + Final Test of the Encoder
In questa pagina del sito puoi guardare il video online Encoding Filename by Build an Encoder / Decoder | CodeNameK - 06 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code with Saar 15 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 404 volte e gli è piaciuto 5 spettatori. Buona visione!