Problem with Determining New Shared Files in Dropbox Business
Recently, started using Dropbox Business, problem! someone shares file, can't determine new shared files! Anyone faced problems?
Overall, would like to know if anyone has faced similar issues while using Dropbox Business. It seems that sometimes, even though someone shares a new file, it's not always easy to determine which files are new.
Key Concepts
- Dropbox Business
- Sharing files
- Determining new shared files
Context
I recently started using Dropbox Business and have encountered an issue where I can't determine new shared files. I was wondering if anyone else has faced similar problems while using this service.
Code Block (Python)
# Example Python code to list new shared files in Dropbox Business
import dropbox
# Replace 'YOUR_APP_KEY' and 'YOUR_APP_SECRET' with your actual app key and secret
app_key = "YOUR_APP_KEY"
app_secret = "YOUR_APP_SECRET"
# Create Dropbox API client
client = dropbox.DropboxClient(app_key, app_secret)
# Get list of shared files
shared_files = client.sharing_shared_links_get_all(shared_with_me=True)
# Loop through shared files and check if file is new
for shared_file in shared_files:
file_info = client.files_get_metadata(shared_file["file_path"])
file_created = file_info["created"]
# Check if file was created after a certain date
if file_created > SOME_DATE:
print(f"New shared file: {shared_file['name']}")