Skip to content

Conversation

@siddharth-nikte
Copy link

Code changes:

  1. drive/api/files.py:
    Created a separate API as the copy method of drive_file.py was buggy.
    Added some checks on depth_zero_toggle_is_active, it keeps giving directory error.
  2. drive/utils/init
    When copying multiple files, update_file_size could not handle multiple files at once, so updated code to use sql command.

Issue: When a new frappe doc is created (with content in it), it doesn't set and display the size at first. It sets the size only after modifying the file. So, creating copy of the new doc doesn't copy the content. Fixing that should fix this issue.

Let me know of any bugs or modifications
Fixes #348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An option to create a copy of the file is needed.

1 participant