This conversation has been locked due to inactivity. Please create a new post.
 
     
     
    
            
          
This conversation has been locked due to inactivity. Please create a new post.
          
        
Hi everyone,
Is there an efficient way to check if a file/resource exists in the system?
Thank you!
Solved! Go to Solution.
          
        
You can use this API to see if a resource exists a specific location:
 Resource res = resourceResolver.getResource(location);
          
        
Hi,
To check if the resource exists in JCR, you can use ResourceUtil API.
Regards
Himanshu
          
        
You can use this API to see if a resource exists a specific location:
 Resource res = resourceResolver.getResource(location);
          
        
You can use the Sling API as Scott mentioned.
          
        
Is there a way to do this using a curl command?
Thank you for helping!
Views
Replies
Total Likes
 
					
				
				
			
		
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies