INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Directory Write Test  (Read 832 times)

MusicBringer

  • Galactic Citizen
  • ****
  • Posts: 439
  • MC33.0.30 x64bit
Directory Write Test
« on: April 03, 2021, 01:37:59 pm »

My c:\drive is full of these tmp files.

For example Directory Write Test (10132).tmp
Please tell me How do I Stop This.
Thanks,
Logged
Caesar adsum jam forte. Brutus aderat. Caesar sic in omnibus. Brutus sic inat.

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72534
  • Where did I put my teeth?
Re: Directory Write Test
« Reply #1 on: April 03, 2021, 03:23:59 pm »

Why do you think JRiver is doing that?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: Directory Write Test
« Reply #2 on: April 04, 2021, 04:50:12 am »

It's a known issue:
https://yabb.jriver.com/interact/index.php?topic=127064.0

Also 1st google result:
https://www.tenforums.com/general-support/164577-directory-write-test-tmp-files-created.html
"Using sysinternals process monitor, I found that the culprit was JRiver Media Center. Everytime I save tags with mp3tag, the file is created."

Try clearing the "Start in" folder of the MC Desktop Shortcut, it should be empty.
Also, check if you have TEMP pointing to a non-existing folder.

(proof: MC EXE file contains the string, check attachment)
Logged

MusicBringer

  • Galactic Citizen
  • ****
  • Posts: 439
  • MC33.0.30 x64bit
Re: Directory Write Test
« Reply #3 on: April 04, 2021, 09:54:47 am »

Bless you zybex,
Thank you so much for your reply.
My "Start in" is empty already.
I have a C:\Users\MCFAN\AppData\Roaming\J River\Media Center 27\Temp - and its empty.
 :)
Logged
Caesar adsum jam forte. Brutus aderat. Caesar sic in omnibus. Brutus sic inat.

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: Directory Write Test
« Reply #4 on: April 05, 2021, 03:57:18 am »

I meant Windows' TEMP folder.
You can open it by doing WIN+R (Run) and typing %TEMP% in there. On your machine this should open this folder:
C:\Users\MCFAN\AppData\Local\Temp

If it opens C:\ or if it throws an error then it's not configured correctly.

@Jim, maybe JR could investigate on which circumstances this file gets written to C:\ ?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Directory Write Test
« Reply #5 on: April 05, 2021, 07:25:41 am »

I'm riddled by what could be creating those files at C:\.

I looked at MP3 tagging and when we need to re-write the file, we build a path right next to where the file is:
      JRString strTemporaryFilename = JRFilename::GetFilenamePathAndName(strFilename) + _T(".xxx");
      JRFileSystem::MakeUniqueFilename(strTemporaryFilename);

So I don't think that's building files at C:\.

Do any of you know what it is that's writing there?

Thanks.
Logged
Matt Ashland, JRiver Media Center

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72534
  • Where did I put my teeth?
Re: Directory Write Test
« Reply #6 on: April 05, 2021, 07:48:15 am »

Read Zybex's post and the link at Microsoft.   We must be trying to write to root.
Logged

MusicBringer

  • Galactic Citizen
  • ****
  • Posts: 439
  • MC33.0.30 x64bit
Re: Directory Write Test
« Reply #7 on: April 05, 2021, 08:49:43 am »

@zybex, My C:\Users\MCFAN\AppData\Local\Temp looks happy, thank you zybex
Logged
Caesar adsum jam forte. Brutus aderat. Caesar sic in omnibus. Brutus sic inat.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9162
Re: Directory Write Test
« Reply #8 on: April 05, 2021, 10:14:24 am »

It's a known issue:
https://yabb.jriver.com/interact/index.php?topic=127064.0

Also 1st google result:
https://www.tenforums.com/general-support/164577-directory-write-test-tmp-files-created.html
"Using sysinternals process monitor, I found that the culprit was JRiver Media Center. Everytime I save tags with mp3tag, the file is created."

I'm a little confused by this, as surely, Media Center and Mp3tag are not the same thing?

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: Directory Write Test
« Reply #9 on: April 05, 2021, 11:07:28 am »

Maybe MC re-importing the file after Mp3Tag changes it, is what's causing the issue?
Perhaps Mp3Tag is writing some tag with a filename (TOFN?) and MC is checking if it has a valid folder path... @Matt?

It doesn't seem related to the code you pasted above - that seems to be creating a random filename, where here the filename has a fixed prefix and a .tmp extension. It looks like a test to determine if a folder is writable.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Directory Write Test
« Reply #10 on: April 05, 2021, 11:19:38 am »

I maybe know what's going on.

There is code in MC that occasionally checks if a folder is writable by creating a "Directory Write Test..." file.  But it deletes the file as soon as it opens it.  But the file is still open when it tries to delete.

It also doesn't delete if it fails to open (which could happen on a protected folder).

I'll change that coming sometime in the future.

Thanks for the help.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up