Post by janra on Nov 7, 2005 17:21:17 GMT
This is a very minor bug.
I suppose I should have remembered that a slash is the directory delimiter, as I come to OS X from linux, but I created a file with a slash in the name. Since this is NaNo I make a new file and name it with the date; I use the groups to separate my chapters. One day's writing spanned two chapters, and since I couldn't make two files with the same name I added /2 to the second one. Nov 4 and Nov 4/2.
When reading about the word counting bug I decided to do a test export (my word counts seemed to be fine) but while exporting I noticed that I had a file called Nov 4 and right after it a file called 2.
Odd, I thought, so I opened up my .scriv file to see what was inside, and there was a folder called Nov 4. I renamed my Nov 4/2 file in the binder to Nov 4 - 2; the file inside the directory was gone and there was an rtf file with the new name with the rest of the rtf files. The Nov 4 folder was still there, however.
So it does the right thing in terms of descending into subdirectories if you create one by accident - you don't lose anything - but when exporting etc you'll see only the part of the file name after the slash which I imagine would be confusing. It doesn't trigger the unique names requirement, since the file is in a different folder within the package. It also doesn't delete the folder when you move the last file out of it by renaming the file so it doesn't include a slash.
I think a simple "illegal characters" thing for file names would be a good idea, to ban slashes :-)
-janra
I suppose I should have remembered that a slash is the directory delimiter, as I come to OS X from linux, but I created a file with a slash in the name. Since this is NaNo I make a new file and name it with the date; I use the groups to separate my chapters. One day's writing spanned two chapters, and since I couldn't make two files with the same name I added /2 to the second one. Nov 4 and Nov 4/2.
When reading about the word counting bug I decided to do a test export (my word counts seemed to be fine) but while exporting I noticed that I had a file called Nov 4 and right after it a file called 2.
Odd, I thought, so I opened up my .scriv file to see what was inside, and there was a folder called Nov 4. I renamed my Nov 4/2 file in the binder to Nov 4 - 2; the file inside the directory was gone and there was an rtf file with the new name with the rest of the rtf files. The Nov 4 folder was still there, however.
So it does the right thing in terms of descending into subdirectories if you create one by accident - you don't lose anything - but when exporting etc you'll see only the part of the file name after the slash which I imagine would be confusing. It doesn't trigger the unique names requirement, since the file is in a different folder within the package. It also doesn't delete the folder when you move the last file out of it by renaming the file so it doesn't include a slash.
I think a simple "illegal characters" thing for file names would be a good idea, to ban slashes :-)
-janra