File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
# Author: AnalogMan
3
- # Modified Date: 2018-10-07
3
+ # Modified Date: 2018-10-08
4
4
# Purpose: Splits Nintendo Switch NSP files into parts for installation on FAT32
5
5
6
6
import os
14
14
15
15
def splitQuick (filepath ):
16
16
fileSize = os .path .getsize (filepath )
17
- info = shutil .disk_usage (os .path .dirname (filepath ))
17
+ info = shutil .disk_usage (os .path .dirname (os . path . abspath ( filepath ) ))
18
18
if info .free < splitSize :
19
19
print ('Not enough temporary space. Needs 4GiB of free space\n ' )
20
20
return
@@ -76,7 +76,7 @@ def splitQuick(filepath):
76
76
77
77
def splitCopy (filepath ):
78
78
fileSize = os .path .getsize (filepath )
79
- info = shutil .disk_usage (os .path .dirname (filepath ))
79
+ info = shutil .disk_usage (os .path .dirname (os . path . abspath ( filepath ) ))
80
80
if info .free < fileSize * 2 :
81
81
print ('Not enough free space to run. Will require twice the space as the NSP file\n ' )
82
82
return
You can’t perform that action at this time.
0 commit comments