Skip to content
git-on-cloudflare
Git hosting on Cloudflare
Sign in
rachel
/
workerd
main
Loading...
Browse
Commits
Admin
File
Blob: src/workerd/server/tests/python/pytest/tests/test_fs.py
..
/
main
/
src
/
workerd
/
server
/
tests
/
python
/
pytest
/
tests
/
test_fs.py
python
9 lines
Copy
View
Raw
Download
Copy raw
View raw
Download
1
import
os
2
from
pathlib
import
Path
3
4
5
def
test_seek_metadata_fs
():
6
fh = Path(__file__).
open
()
7
print
(fh.fileno())
8
print
(
f"This file is
{os.lseek(fh.fileno(),
0
, os.SEEK_END)}
characters long"
)