4 ms·
One feature of a filesystem library I would like is to convert a filename into one that only includes permitted characters for a given filesystem type (for exam
by chaz6 5y ago
One feature of a filesystem library I would like is to convert a filename into one that only includes permitted characters for a given filesystem type (for example, ":" and "?" are allowed in xfs but not exfat). For instance, mystring = fs.util.convert_name(u"What time is it?.txt", fs.fstype.exfat, "_") where "_" is the character to be substituted.
- TwoBit 5y agoHow would you do that without potentially creating colliding names?