
    Mh                     :    d dl mZmZ d dlmZ d dlmZ d Zd ZdS )    )NSFileManagerNSURL)	text_type)preprocess_pathsc                 d    | d         s't          | d                                                   d S )Nr      )OSErrorlocalizedFailureReason)	op_results    U/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/send2trash/mac/modern.pycheck_op_resultr      s6    Q< =il99;;<<<= =    c                     t          |           } d | D             } | D ]O}t          j        |          }t          j                    }|                    |d d           }t          |           Pd S )Nc                 f    g | ].}t          |t                    s|                    d           n|/S )zutf-8)
isinstancer   decode).0paths     r   
<listcomp>zsend2trash.<locals>.<listcomp>   s9    aaaSWD))D)DNT[[!!!$aaar   )r   r   fileURLWithPath_r   defaultManager&trashItemAtURL_resultingItemURL_error_r   )pathsr   file_urlfmr   s        r   
send2trashr      s    U##Eaa[`aaaE # #)$//)++==hdSS		""""	# #r   N)	
Foundationr   r   send2trash.compatr   send2trash.utilr   r   r    r   r   <module>r!      sk    , + + + + + + + ' ' ' ' ' ' , , , , , ,= = =# # # # #r   