miroir de
https://github.com/arsenetar/send2trash.git
synchronisé 2026-04-08 21:01:37 +00:00
Fixed spaces/tabs mixup.
Cette révision appartient à :
@@ -19,10 +19,10 @@ static PyObject* send2trash_osx_send(PyObject *self, PyObject *args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
FSPathMakeRefWithOptions(utf8_chars, kFSPathMakeRefDoNotFollowLeafSymlink, &fp, NULL);
|
FSPathMakeRefWithOptions(utf8_chars, kFSPathMakeRefDoNotFollowLeafSymlink, &fp, NULL);
|
||||||
op_result = FSMoveObjectToTrashSync(&fp, NULL, kFSFileOperationDefaultOptions);
|
op_result = FSMoveObjectToTrashSync(&fp, NULL, kFSFileOperationDefaultOptions);
|
||||||
PyMem_Free(utf8_chars);
|
PyMem_Free(utf8_chars);
|
||||||
if (op_result != noErr) {
|
if (op_result != noErr) {
|
||||||
PyErr_SetString(PyExc_OSError, GetMacOSStatusCommentString(op_result));
|
PyErr_SetString(PyExc_OSError, GetMacOSStatusCommentString(op_result));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Référencer dans un nouveau ticket
Bloquer un utilisateur