o
�J�h� � @ s� g d �Z g d�Zg d�ZddgZddgZe�dddddddddd� �Ze�d di�Ze�d di�Z e�d di�Z
e�dddddddddd� �Zd
efdd�Z
d
S ))�Windows�NTFSZFAT32ZexFATZReFS)�LinuxZext2Zext3�ext4ZBtrfsZXFSZZFS)�macOS�APFSzHFS+�BSDZUFSZCIFSZSMB� ) �\�/�?�:�*�"�<�>�|r
�returnc C s@ | t v rtS | tv rtS | tv rtS | tv rtS | tv rt S dS )a�
Returns a translation table to remove invalid characters for a specified file system type.
This function identifies the file system type and returns a translation table for removing
characters that are not allowed in filenames for that specific file system.
Args:
file_type (str): The type of file system being checked. Supported file systems include:
- Windows: NTFS, FAT32, exFAT, ReFS
- Linux: ext2, ext3, ext4, Btrfs, XFS, ZFS
- macOS: APFS, HFS+
- BSD/UNIX: UFS
- Network Filesystems: CIFS, SMB
Returns:
dict: A translation table where invalid characters are mapped to an empty string.
Example:
>>> ys = yt.streams.get_highest_resolution()
>>> ys.download(file_system='ext4')
Raises:
None, but prints a message if the file system type is not recognized.
N)
�windows�windows_translation�linux�linux_translationr �macos_translation�bsd_unix�bsd_translation�network_filesystems�network_filesystems_translation)� file_type� r �SC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\pytubefix\file_system.py�file_system_verify- s �r N)r r r r r �str� maketransr r r r r �dictr r r r r �<module> sJ �����