Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fiona/_vsiopener.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ class FileContainer(ABC):
pass

@abstractmethod
def mtime(self, path: str) -> int:
def mtime(self, path: str) -> intmax_t:
"""Get the mtime of a resource..

Parameters
Expand Down Expand Up @@ -618,7 +618,7 @@ class _FilesystemContainer(FileContainer):
return [item if isinstance(item, str) else item["filename"] for item in self._obj.ls(path)]
def mtime(self, path):
try:
mtime = int(self._obj.modified(path).timestamp())
mtime = long(self._obj.modified(path).timestamp())
except NotImplementedError:
mtime = 0
return mtime
Expand Down
2 changes: 1 addition & 1 deletion fiona/gdal.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ cdef extern from "cpl_vsi.h" nogil:
ctypedef struct VSIStatBufL:
long st_size
long st_mode
int st_mtime
long long st_mtime
ctypedef enum VSIRangeStatus:
VSI_RANGE_STATUS_UNKNOWN,
VSI_RANGE_STATUS_DATA,
Expand Down