morenoamaya / win-sshfs

Automatically exported from code.google.com/p/win-sshfs
0 stars 0 forks source link

Office not deleting "Owner Files" (temp files that begin with ~$ or tilde dollar sign) #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open any MS Office file on mounted hard drive
2. Edit that file and save
3. Notice creation of a new file ~$filename.docx

What is the expected output? What do you see instead?
MS Office "Owner Files" are temporary buffer files in use when Office is 
editing files, are named the same as the main file with a leading ~$ or tilde 
dollar sign. Automatically, Windows 7 normally hides these files, and deletes 
them when the file is closed.
http://support.microsoft.com/?kbid=211632
Doing this on a mounted sshfs volume creates these temporary files and then 
does not delete them. Windows also does not know to hide them. Additionally, I 
read later in that article
"When you open a file by using the HTTP or FTP protocol, the file is first 
copied to the temp directory. Then, the file is opened from the temp directory."
I think I would have expected one or the other of these to happen, but instead, 
I have a swath of temporary files.

What version of the product are you using?

win-sshfs: 0.0.1.5
Client OS: Windows 7 + Service Pack 1
Server OS: Ubuntu 12.04 LTS
Ssh server: OpenSSH sshd

Please provide any additional information below.
I'm not sure if this is a windows problem or a sshfs problem of win-sshfs. In 
the interim I'm going to try aliasing ls to exclude these files and see if that 
works, and routinely delete them off the server.

Original issue reported on code.google.com by ezra.tuc...@altenex.com on 9 Oct 2013 at 12:41