Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
aa5d1703
Commit
aa5d1703
authored
Dec 28, 2010
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix varname typo: ctypes.ulonglong => ctypes.c_ulonglong
parent
b63c5045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/osfs/__init__.py
+2
-2
No files found.
fs/osfs/__init__.py
View file @
aa5d1703
...
...
@@ -167,7 +167,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
if
platform
.
system
()
==
'Windows'
:
try
:
import
ctypes
free_bytes
=
ctypes
.
ulonglong
(
0
)
free_bytes
=
ctypes
.
c_
ulonglong
(
0
)
ctypes
.
windll
.
kernel32
.
GetDiskFreeSpaceExW
(
ctypes
.
c_wchar_p
(
self
.
root_path
),
None
,
None
,
ctypes
.
pointer
(
free_bytes
))
return
free_bytes
.
value
except
ImportError
:
...
...
@@ -180,7 +180,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
if
platform
.
system
()
==
'Windows'
:
try
:
import
ctypes
total_bytes
=
ctypes
.
ulonglong
(
0
)
total_bytes
=
ctypes
.
c_
ulonglong
(
0
)
ctypes
.
windll
.
kernel32
.
GetDiskFreeSpaceExW
(
ctypes
.
c_wchar_p
(
self
.
root_path
),
None
,
ctypes
.
pointer
(
total_bytes
),
None
)
return
total_bytes
.
value
except
ImportError
:
...
...
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