Skip to content
Merged
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
8 changes: 4 additions & 4 deletions filecloudapi/fcserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,10 +817,10 @@ def close(self):
}

if nofileoverwrite is not None:
params["nofileoverwrite"] = "true" if nofileoverwrite else "false"
params["nofileoverwrite"] = 1 if nofileoverwrite else 0

if iflastmodified is not None:
params["iflastmodified"] = self._serverdatetime(iflastmodified)
params["iflastmodified"] = str(int(iflastmodified.timestamp()))

params_str = urlencode(params)

Expand Down Expand Up @@ -865,10 +865,10 @@ def close(self):
}

if nofileoverwrite is not None:
params["nofileoverwrite"] = "true" if nofileoverwrite else "false"
params["nofileoverwrite"] = 1 if nofileoverwrite else 0

if iflastmodified is not None:
params["iflastmodified"] = self._serverdatetime(iflastmodified)
params["iflastmodified"] = str(int(iflastmodified.timestamp()))

if data_size is not None:
params["filesize"] = data_size
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "filecloudapi-python"
version = "0.4.0"
version = "0.4.1"
description = "A Python library to connect to a Filecloud server"

packages = [{ include = "filecloudapi" }]
Expand Down
Loading