Closed lasuk closed 4 months ago
No human around for review. Asking ChatGPT:
mirror_directory()
and list_files()
Methods and Their Testsmirror_directory()
Methodstr | Path
for directory paths offers flexibility for different types of inputs.list_files()
Methodmock_directory
fixture is a good practice as it sets up a consistent test environment.mirror_directory()
into smaller functions to improve readability and maintainability.Thanks ChatGPT, for your comments:
I find the following comments most pertinent:
I declare the current state to be good enough for a first version and go ahead with merging :)
Adding functions
mirror_directory()
andlist_files()
to CashCtrlAPIClient, with a corresponding unit test. Those functions allow to recursively sync a local directory on the CashCtrl server, and to list remote files.