fscache: Fix starts_with() broken by b41a5f4e5b
				
					
				
			Este commit está contenido en:
		
							
								
								
									
										2
									
								
								cache/fscache.cpp
									
									
									
									
										vendido
									
									
								
							
							
						
						
									
										2
									
								
								cache/fscache.cpp
									
									
									
									
										vendido
									
									
								
							@@ -46,7 +46,7 @@ void FsCache::removePrefix(std::string_view prefix)
 | 
			
		||||
	// TODO: lock dir
 | 
			
		||||
	for(auto &entry : std::filesystem::directory_iterator(std::filesystem::path{this->path}))
 | 
			
		||||
	{
 | 
			
		||||
		if(std::string_view(entry.path().filename().c_str()).starts_with(prefix) == 0)
 | 
			
		||||
		if(std::string_view(entry.path().filename().c_str()).starts_with(prefix))
 | 
			
		||||
		{
 | 
			
		||||
			std::filesystem::remove_all(entry);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Referencia en una nueva incidencia
	
	Block a user