tidy volume name

This commit is contained in:
Denis Molony 2021-04-19 12:58:19 +10:00
parent 4ab834300d
commit 59290f7d25
1 changed files with 1 additions and 12 deletions

View File

@ -1,6 +1,5 @@
package com.bytezone.diskbrowser.utilities;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
@ -220,6 +219,7 @@ public class NuFX
volumeName = volumeName.substring (0, pos);
if (volumeName.length () > 15)
volumeName = volumeName.substring (0, 15);
volumeName = volumeName.replace (' ', '.');
}
// -------------------------------------------------------------------------------//
@ -318,15 +318,4 @@ public class NuFX
System.out.println (pathName);
}
}
// ---------------------------------------------------------------------------------//
public static void main (String[] args) throws FileFormatException, IOException
// ---------------------------------------------------------------------------------//
{
File file = new File (
"/Users/denismolony/Dropbox/Examples/SHK/Disk Disintegrator Deluxe 5.0_D1.SHK");
NuFX nufx = new NuFX (file.toPath ());
System.out.println (nufx);
}
}