Atomic writes generate temp files in Dropbox
See original GitHub issueIssue Report Checklist
- [ x] Searched the issues page for similar reports
- [ x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- [ x] Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - [ x] Tried basic troubleshooting (if a bug/error)
- [x ] Restarted Spyder
- [ x] Reset preferences with
spyder --reset
- [ x] Reinstalled the latest version of Anaconda
- [ x] Tried the other applicable steps from the Troubleshooting Guide
- [ x] Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
Spyder4 changes the auto-save recovery file location to the last directory a script was opened from or saved to. Un-selecting the auto-save feature and restarting Spyder does not disable the auto-save file creation.
What steps reproduce the problem?
- Reset Spyder Settings
- Disable autosave, restart Spyder
- Open a previously saved script – example.py, from directory “usr/pyscript/”
- Run the script, and find a list of “File” saved under the diretory “usr/pyscript/”, where “File” are the different auto-save versions of example.py
- When ceating a new script, the default “save as” directory is also “usr/pyscript/”
What is the expected output? What do you see instead?
The autosave feature can be disabled correctly, or the autosave file to be saved in a specified directory.
Versions
- Spyder version: 4.1.3
- Python version: 3.7
- Qt version:
- PyQt version:
- Operating System name/version:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:16 (11 by maintainers)
Top Results From Across the Web
Solved: Unable to save files from e-mail or online. Tempor...
It does appear that the temp file is what was causing this issue @JenKDLaw. I'm glad to hear that saving the file in...
Read more >Atomic file update in Windows - Stack Overflow
So far I've been creating a temporary file, writing to it, and then calling ReplaceFile . However, Dropbox sees it as a separate ......
Read more >What I Learned Writing a Dropbox Clone - Part 2 - hoelz.ro
However, even though an individual read or write operation is atomic, we can't guarantee atomicity across an arbitrary number of them. So for ......
Read more >luigi.contrib.dropbox module — Luigi 2.8.13 documentation
A context manager that enables a reasonably short, general and magic-less way to solve the Atomic Writes Problem. On entering, it will create...
Read more >Why does Debian prefer a temp file replacing the original over ...
Your question suggests that Debian uses temp files for all writes, which isn't the case. This is simply the default for mp3gain ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sure! I’ll try that 😃
And I’ll also test it with other clients, such as NextCloud or OneDrive, as I would suspect that they could produce problems as well, however, as they are not so wide-spread it might not have been reported yet.
@dalthviz, I think this is related to the way we perform atomic writes and how Dropbox saves (somehow) those temporary files we use in the background.