equal
deleted
inserted
replaced
1851 // ----------------------------------------------------------------------------- |
1851 // ----------------------------------------------------------------------------- |
1852 // |
1852 // |
1853 TInt hspsServerUtil::FindFile( |
1853 TInt hspsServerUtil::FindFile( |
1854 RFs& aFs, |
1854 RFs& aFs, |
1855 const TDesC& aPath, |
1855 const TDesC& aPath, |
1856 const TDesC& aFilename, |
1856 const TDesC& aFilename, |
|
1857 const TBool aFindFromUdaEmmcDrives, |
1857 TFileName& aDrivePathName ) |
1858 TFileName& aDrivePathName ) |
1858 { |
1859 { |
1859 TInt err = KErrNotFound; |
1860 TInt err = KErrNotFound; |
1860 |
1861 |
1861 TParsePtrC parser( aPath ); |
1862 TParsePtrC parser( aPath ); |
1873 // exclude external/remote drives from the search - otherwise end-users |
1874 // exclude external/remote drives from the search - otherwise end-users |
1874 // could introduce fixed configurations (e.g. operator locks wouldn't work) |
1875 // could introduce fixed configurations (e.g. operator locks wouldn't work) |
1875 TFindFile fileFinder( aFs ); |
1876 TFindFile fileFinder( aFs ); |
1876 fileFinder.SetFindMask( |
1877 fileFinder.SetFindMask( |
1877 KDriveAttExclude|KDriveAttRemovable|KDriveAttRemote|KDriveAttSubsted ); |
1878 KDriveAttExclude|KDriveAttRemovable|KDriveAttRemote|KDriveAttSubsted ); |
1878 aFs.SetSessionToPrivate( EDriveE ); |
1879 if( aFindFromUdaEmmcDrives ) |
|
1880 { |
|
1881 aFs.SetSessionToPrivate( EDriveE ); |
|
1882 } |
|
1883 else |
|
1884 { |
|
1885 aFs.SetSessionToPrivate( EDriveZ ); |
|
1886 } |
1879 err = fileFinder.FindByDir( filename, path ); |
1887 err = fileFinder.FindByDir( filename, path ); |
1880 aFs.SetSessionToPrivate( EDriveC ); |
1888 aFs.SetSessionToPrivate( EDriveC ); |
1881 if( !err ) |
1889 if( !err ) |
1882 { |
1890 { |
1883 // Return the path with a drive reference |
1891 // Return the path with a drive reference |