equal
deleted
inserted
replaced
254 aPath.Insert(0,TheShell->currentPath); |
254 aPath.Insert(0,TheShell->currentPath); |
255 else |
255 else |
256 aPath.Insert(0,TheShell->currentPath.Left(2)); |
256 aPath.Insert(0,TheShell->currentPath.Left(2)); |
257 } |
257 } |
258 |
258 |
259 RFile file; |
259 RFile64 file; |
260 r=file.Open(CShell::TheFs,aPath,EFileStream); |
260 r=file.Open(CShell::TheFs,aPath,EFileStream); |
261 if (r!=KErrNone) // File could not be opened |
261 if (r!=KErrNone) // File could not be opened |
262 { |
262 { |
263 if (appendedExe) // If .EXE was appended earlier |
263 if (appendedExe) // If .EXE was appended earlier |
264 { |
264 { |
1197 } |
1197 } |
1198 |
1198 |
1199 //-- print out cluster size that FS reported |
1199 //-- print out cluster size that FS reported |
1200 TVolumeIOParamInfo volIoInfo; |
1200 TVolumeIOParamInfo volIoInfo; |
1201 nRes = aFs.VolumeIOParam(aDrvNum, volIoInfo); |
1201 nRes = aFs.VolumeIOParam(aDrvNum, volIoInfo); |
1202 if(nRes == KErrNone && volIoInfo.iClusterSize >= 512) |
1202 if(nRes == KErrNone) |
1203 { |
1203 { |
1204 Buf.AppendFormat(_L(", Cluster Sz:%d"), volIoInfo.iClusterSize); |
1204 if(volIoInfo.iBlockSize >= 0) |
|
1205 { |
|
1206 Buf.AppendFormat(_L(", BlkSz:%d"), volIoInfo.iBlockSize); |
|
1207 } |
|
1208 |
|
1209 if(volIoInfo.iClusterSize >= 0) |
|
1210 { |
|
1211 Buf.AppendFormat(_L(", ClSz:%d"), volIoInfo.iClusterSize); |
|
1212 } |
|
1213 |
|
1214 Buf.AppendFormat(_L(", CacheFlags:0x%x"), volInfo.iFileCacheFlags); |
|
1215 |
1205 } |
1216 } |
|
1217 |
1206 |
1218 |
1207 if(Buf.Length()) |
1219 if(Buf.Length()) |
1208 { |
1220 { |
1209 Buf.Append(_L("\n")); |
1221 Buf.Append(_L("\n")); |
1210 apConsole->Printf(Buf); |
1222 apConsole->Printf(Buf); |
1970 TInt ShellFunction::Hexdump(TDes& aPath,TUint aSwitches) |
1982 TInt ShellFunction::Hexdump(TDes& aPath,TUint aSwitches) |
1971 { |
1983 { |
1972 ShellFunction::StripQuotes(aPath); |
1984 ShellFunction::StripQuotes(aPath); |
1973 |
1985 |
1974 ParsePath(aPath); |
1986 ParsePath(aPath); |
1975 RFile file; |
1987 RFile64 file; |
1976 TInt r=file.Open(TheShell->TheFs,aPath,EFileStream); |
1988 TInt r=file.Open(TheShell->TheFs,aPath,EFileStream); |
1977 if (r!=KErrNone) |
1989 if (r!=KErrNone) |
1978 return(r); |
1990 return(r); |
1979 |
1991 |
1980 TInt offset=0; |
1992 TInt offset=0; |
3106 |
3118 |
3107 _LIT(KLitPercentS, "%S"); |
3119 _LIT(KLitPercentS, "%S"); |
3108 TInt ShellFunction::Type(TDes& aPath,TUint aSwitches) |
3120 TInt ShellFunction::Type(TDes& aPath,TUint aSwitches) |
3109 { |
3121 { |
3110 ParsePath(aPath); |
3122 ParsePath(aPath); |
3111 RFile file; |
3123 RFile64 file; |
3112 TInt r=file.Open(TheShell->TheFs,aPath,EFileStreamText|EFileShareReadersOnly); |
3124 TInt r=file.Open(TheShell->TheFs,aPath,EFileStreamText|EFileShareReadersOnly); |
3113 if (r!=KErrNone) |
3125 if (r!=KErrNone) |
3114 return r; |
3126 return r; |
3115 TBuf8<0x200> tmpbuf; |
3127 TBuf8<0x200> tmpbuf; |
3116 TBuf<0x200> ubuf; |
3128 TBuf<0x200> ubuf; |