mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-02-06 04:29:56 +00:00
tidy volume name
This commit is contained in:
parent
4ab834300d
commit
59290f7d25
@ -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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user