Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
52377e05
Kaydet (Commit)
52377e05
authored
Şub 02, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The FSAliasFile routines also have an in/out parameter.
üst
1d63c9f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
_Filemodule.c
Mac/Modules/file/_Filemodule.c
+6
-4
filescan.py
Mac/Modules/file/filescan.py
+3
-0
No files found.
Mac/Modules/file/_Filemodule.c
Dosyayı görüntüle @
52377e05
...
...
@@ -2954,7 +2954,8 @@ static PyObject *File_FSResolveAliasFileWithMountFlags(PyObject *_self, PyObject
Boolean
targetIsFolder
;
Boolean
wasAliased
;
unsigned
long
mountFlags
;
if
(
!
PyArg_ParseTuple
(
_args
,
"bl"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&bl"
,
FSRef_Convert
,
&
theRef
,
&
resolveAliasChains
,
&
mountFlags
))
return
NULL
;
...
...
@@ -2979,7 +2980,8 @@ static PyObject *File_FSResolveAliasFile(PyObject *_self, PyObject *_args)
Boolean
resolveAliasChains
;
Boolean
targetIsFolder
;
Boolean
wasAliased
;
if
(
!
PyArg_ParseTuple
(
_args
,
"b"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&b"
,
FSRef_Convert
,
&
theRef
,
&
resolveAliasChains
))
return
NULL
;
_err
=
FSResolveAliasFile
(
&
theRef
,
...
...
@@ -3133,9 +3135,9 @@ static PyMethodDef File_methods[] = {
{
"FSNewAlias"
,
(
PyCFunction
)
File_FSNewAlias
,
1
,
PyDoc_STR
(
"(FSRef fromFile, FSRef target) -> (AliasHandle inAlias)"
)},
{
"FSResolveAliasFileWithMountFlags"
,
(
PyCFunction
)
File_FSResolveAliasFileWithMountFlags
,
1
,
PyDoc_STR
(
"(Boolean resolveAliasChains, unsigned long mountFlags) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)"
)},
PyDoc_STR
(
"(
FSRef theRef,
Boolean resolveAliasChains, unsigned long mountFlags) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)"
)},
{
"FSResolveAliasFile"
,
(
PyCFunction
)
File_FSResolveAliasFile
,
1
,
PyDoc_STR
(
"(Boolean resolveAliasChains) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)"
)},
PyDoc_STR
(
"(
FSRef theRef,
Boolean resolveAliasChains) -> (FSRef theRef, Boolean targetIsFolder, Boolean wasAliased)"
)},
{
"FSUpdateAlias"
,
(
PyCFunction
)
File_FSUpdateAlias
,
1
,
PyDoc_STR
(
"(FSRef fromFile, FSRef target, AliasHandle alias) -> (Boolean wasChanged)"
)},
{
"pathname"
,
(
PyCFunction
)
File_pathname
,
1
,
...
...
Mac/Modules/file/filescan.py
Dosyayı görüntüle @
52377e05
...
...
@@ -172,6 +172,9 @@ class MyScanner(Scanner_OSX):
([(
'FSSpec'
,
'theSpec'
,
'OutMode'
)],
[(
'FSSpec_ptr'
,
'theSpec'
,
'InOutMode'
)]),
([(
'FSRef'
,
'theRef'
,
'OutMode'
)],
[(
'FSRef_ptr'
,
'theRef'
,
'InOutMode'
)]),
# The optional FSSpec to all ResolveAlias and NewAlias methods
([(
'FSSpec_ptr'
,
'fromFile'
,
'InMode'
)],
[(
'OptFSSpecPtr'
,
'fromFile'
,
'InMode'
)]),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment