Open uriel1998 opened 3 years ago
as of today, all files need to be lower case
Does that mean I have to rename like 3000 archive and all the associated internal files?
Is there any reason why it couldn't just take the file as is? Ignore case altogether?
On Feb 18, 2021, at 3:36 PM, wwivsoftwareservices notifications@github.com wrote:
Does that mean I have to rename like 3000 archive and all the associated internal files?
From: Rushfan notifications@github.com Reply-To: wwivbbs/wwiv reply@reply.github.com Date: Thursday, February 18, 2021 at 16:18 To: wwivbbs/wwiv wwiv@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [wwivbbs/wwiv] case issues with file xfer area (#1383)
as of today, all files need to be lower case
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Nice program called Bulk File Rename Utility will take care of converting all files to lower case. I converted all mine before moving them to a linux box.
MorgulCian, does it work with/in Linux?
MorgulCian, does it work with/in Linux?
I dont know. I had all my transfer section files on my Win 10 computer. I ran them program on that computer, then moved the files to the linux box.
I used "rename" on linux before:. Here's an example on it: https://unix.stackexchange.com/questions/19807/renaming-files-to-have-lower-case-extensions-with-rename.
That's the immediate answer. in WWIV, we don't have an extra place to hold the filename in the original case, and wwiv expects internally the file to be "XXXXXXXX.EEE" format. where X is name and E extension. Example for foo.zip is "FOO .ZIP".
To check if the file exists, would need to switch from a stat call which is quick to a operdir/readdir and filtering based on a filename match. This would make things like listing the directory O(n) to O(n^2).
A few folks have asked for a new DIR format that breaks with the 4.x compatibility. That'd be possible for a dir by dir basis and if so could likely accomidate storing a few things about each entry.
original filename (larger size, case senstiive) WWIV fake filename in 8.3 format, upper case. attributes, possibly extended description inline. also support an index file that is filename to position, or just since our files aren't massive use jsont.
To @wwivsoftwareservices No, I believe you are on Win32, and on windows the filesystem is cases insensitive, so foo.zip and FOO.ZIP refer to the same file.
//UPLOADALL (at least) is inconsistent with casing - a file ANSVW1A.ZIP was recognized with uploadall, but then reported
ansvw1a.zip does not exist
.