cadencii.java.io.File.getFreeSpace C# (CSharp) 메소드

getFreeSpace() 공개 메소드

この抽象パス名で指定されるパーティション内で未割り当てのバイト数を返します。
public getFreeSpace ( ) : long
리턴 long
        public long getFreeSpace()
        {
            string drive = System.IO.Path.GetPathRoot( m_path );
            foreach ( System.IO.DriveInfo di in System.IO.DriveInfo.GetDrives() ) {
                if ( di.RootDirectory.FullName == drive ) {
                    return di.TotalFreeSpace;
                }
            }
            return 0;
        }