@@ -211,7 +211,7 @@ def atime(self, value):
211
211
seconds , fraction = math .modf (value )
212
212
self .set_atime (int (seconds ), int (fraction * 1_000_000_000 ))
213
213
214
- def set_atime (self , timestamp_sec , timestamp_nsec ):
214
+ def set_atime (self , timestamp_sec , timestamp_nsec = 0 ):
215
215
"Kept for backward compatibility. `entry.atime = ...` is supported now."
216
216
return ffi .entry_set_atime (self ._entry_p , timestamp_sec , timestamp_nsec )
217
217
@@ -235,7 +235,7 @@ def mtime(self, value):
235
235
seconds , fraction = math .modf (value )
236
236
self .set_mtime (int (seconds ), int (fraction * 1_000_000_000 ))
237
237
238
- def set_mtime (self , timestamp_sec , timestamp_nsec ):
238
+ def set_mtime (self , timestamp_sec , timestamp_nsec = 0 ):
239
239
"Kept for backward compatibility. `entry.mtime = ...` is supported now."
240
240
return ffi .entry_set_mtime (self ._entry_p , timestamp_sec , timestamp_nsec )
241
241
@@ -259,7 +259,7 @@ def ctime(self, value):
259
259
seconds , fraction = math .modf (value )
260
260
self .set_ctime (int (seconds ), int (fraction * 1_000_000_000 ))
261
261
262
- def set_ctime (self , timestamp_sec , timestamp_nsec ):
262
+ def set_ctime (self , timestamp_sec , timestamp_nsec = 0 ):
263
263
"Kept for backward compatibility. `entry.ctime = ...` is supported now."
264
264
return ffi .entry_set_ctime (self ._entry_p , timestamp_sec , timestamp_nsec )
265
265
0 commit comments