Bug 135858 - Rename file in 8.3 format
Summary: Rename file in 8.3 format
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dev-related
  Show dependency treegraph
 
Reported: 2020-08-17 20:55 UTC by LE GARREC Vincent
Modified: 2023-10-10 01:04 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
found_8_3_file_format.py (990 bytes, text/plain)
2020-08-17 20:57 UTC, LE GARREC Vincent
Details
8_3_format.log (67.36 KB, text/plain)
2020-08-17 20:58 UTC, LE GARREC Vincent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LE GARREC Vincent 2020-08-17 20:55:17 UTC
Description:
I found an easy job to do in the commit "we're not in DOS anymore" https://cgit.freedesktop.org/libreoffice/core/commit/?id=7c67a8f4e837669ea23d1bc98e3d6fb78025066f

The job is to rename files that have a 8.3 filename.

I build a small (and ugly but do the job) python script to find files to rename.

The script lists every file and each file, it try to found inside the declaration of a class where the filename is a abbreviation. For example the script found that the file "./filter/source/graphicfilter/idxf/dxfgrprd.hxx" has a class "DXFGroupReader" so the file should be renamed "DXFGroupReader.hxx" or "dxfgroupreader.hxx".

I did not limit length file to 8 to be able to found more files.

What do you think about it ? Is it a good idea ?

Steps to Reproduce:
-

Actual Results:
Some filename are truncated or don't have vowel anymore.

Expected Results:
Rename file to ease maintenance.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice Master
Comment 1 LE GARREC Vincent 2020-08-17 20:57:44 UTC
Created attachment 164389 [details]
found_8_3_file_format.py

Found files in 8.3 fileformat in the current folder. The file must have a class where the filename is an abbreviation (missing char, case insensitive) of the class.
Comment 2 LE GARREC Vincent 2020-08-17 20:58:56 UTC
Created attachment 164390 [details]
8_3_format.log

All files that contain a class where the filename is an abbreviation of the class.
Comment 3 Xisco Faulí 2020-09-07 10:32:09 UTC
(In reply to LE GARREC Vincent from comment #0)
> Description:
> I found an easy job to do in the commit "we're not in DOS anymore"
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=7c67a8f4e837669ea23d1bc98e3d6fb78025066f

@Noel, I thought you might be interested in this issue
Comment 4 Noel Grandin 2020-09-07 10:39:51 UTC
Doing any kind of mass rename is something that would need to be talked about in the ESC.
I don't think it's a good idea in general, it would be too disruptive.