Standards: filesystem: Difference between revisions

From wikinotes
 
No edit summary
Line 1: Line 1:
= filenames =
= Documentation =
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
|-
!colspan=2| Information Source
|-
|-
| ntfs || https://msdn.microsoft.com/en-us/library/aa365247.aspx
| ntfs || https://msdn.microsoft.com/en-us/library/aa365247.aspx
Line 10: Line 8:
|-
|-
|}
|}
</blockquote><!-- Documentation -->


= filenames =
<blockquote>
== ntfs ==
== ntfs ==
<source lang="python">
<source lang="python">
Line 26: Line 27:
invalid_filenames = ['..', '.']
invalid_filenames = ['..', '.']
</source>
</source>
</blockquote><!-- filenames -->
</blockquote><!-- filenames -->

Revision as of 21:18, 19 September 2021

Documentation

ntfs https://msdn.microsoft.com/en-us/library/aa365247.aspx
posix http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html

filenames

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 = ['..', '.']