Should have seen this coming - Where to write temp files?
-
Yeah, I'm writing a LOT of files and they are persistant while the model is open. So I could have a few thousand files xluttering up someone's desktop
hehhe. Might not go over well.I still can't figure out why my Mac tester's computer won't let me write to his temp folder. It lets me create my folder, but then won't let me write to it.....grr. Oh yes, though come to think of it, he has not tested my new version using the different permission settings the Jim and Dan suggested. I better get him to try that soon.
-
And you may have set the "special" bits, by accident, when you sent int(777) instead of int(511)...
.. I suggest having the tester, totally delete the folder manually, before trying the new version.
-
Ahh, good point.
Thanks so much everyone for all the help always. Its nice to be able to help people from time to and time, and even nicer when there are amazing people out there who are willing and able to help when needed. Very grateful, thanks Dan (et al)
Chris
-
Just noticed ANOTHER standard Ruby extension that bears on this subject.
With a path to the local standard Ruby lib dir pushed into the
$LOAD_PATHarray, you add the following to your module:
require('tmpdir.rb')This standard extension adds the class methods:
Dir::tmpdirandDir::mktmpdirIf you read the file, you'll recognize the
Dir::tmpdirmethod as the 'progenitor' of the edition in the Google 'webtextures_loader.rb' file. (Google "lifted" it, and stripped out the Win32 specific part.)So (above) when we talked about whether to rely on the WebTextures plugin, my advice is, to instead rely on the Standard Ruby library.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement