Changeset 1100 for trunk/macosx


Ignore:
Timestamp:
Nov 17, 2006, 10:12:15 AM (15 years ago)
Author:
titer
Message:

When checking free space on the hard drive, use the destination folder (the data location may not exist yet and fileSystemAttributesAtPath gives you incorrect values then)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r1099 r1100  
    533533    NSString * volumeName = [[[NSFileManager defaultManager] componentsToDisplayForPath: [self downloadFolder]]
    534534                                                                                                objectAtIndex: 0];
    535     NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self dataLocation]];
     535    NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
    536536    uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
    537537            torrentRemaining = [self size] - (uint64_t)[self downloadedValid];
Note: See TracChangeset for help on using the changeset viewer.