Standards: filesystem: Difference between revisions
From wikinotes
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= | = Valid Filenames = | ||
<blockquote> | <blockquote> | ||
== Documentation == | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| ntfs || https://msdn.microsoft.com/en-us/library/aa365247.aspx | | ntfs || https://msdn.microsoft.com/en-us/library/aa365247.aspx | ||
Line 26: | Line 25: | ||
invalid_filenames = ['..', '.'] | invalid_filenames = ['..', '.'] | ||
</source> | </source> | ||
</blockquote><!-- filenames --> | </blockquote><!-- filenames --> |
Latest revision as of 21:19, 19 September 2021
Valid Filenames
Documentation
ntfs https://msdn.microsoft.com/en-us/library/aa365247.aspx posix http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html ntfs
char_range = '^[a-zA-Z0-9{}]+'.format(re.escape('_ .()')) invalid_filenames = ( ['CON', 'PRN', 'AUX', 'NUL', 'CLOCK', '..', '.'] + ['COM{}'.format(i) for i in range(1, 10)] + ['LPT{}'.format(i) for i in range(1, 10)] )posix
char_range = '^[a-zA-Z0-9{}]+'.format(re.escape('_ .()')) invalid_filenames = ['..', '.']