Skip to content

Commit 8414119

Browse files
committed
Removed fsutil file call for PC
1 parent fd18688 commit 8414119

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

MappedTensor.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,13 +1382,9 @@ function make_complex(mtVar)
13821382

13831383
% - Fast allocation on some platforms
13841384
bFailed = true;
1385-
% if ispc()
1386-
% [bFailed, ~] = system(sprintf('fsutil file createnew %s %i', file, nbytes));
1387-
% else
1388-
% [bFailed, ~] = system(sprintf('fallocate -l %i %s', nNumEntries, strFilename));
1389-
% end
1385+
% [bFailed, ~] = system(sprintf('fallocate -l %i %s', nNumEntries, strFilename));
13901386

1391-
% - Slow fallback -- use Matlab to write data directly
1387+
% - Slow fallback -- use Matlab to write zero data directly
13921388
if (bFailed)
13931389
hFile = fopen(strFilename, 'w+');
13941390
fwrite(hFile, 0, 'uint8', nNumEntries-1);

0 commit comments

Comments
 (0)