AlexanderKitaev wrote:
> 
> I still think that the reason of the problem is that you use different
> paths/urls for import and to check path existence.
> You wrote:
> 
>> SVNNodeKind fileNodeKind = repository.checkPath(rootUrl + fileName, -1);
> 
> What is the repository URL (repository.getLocation())?
> SVNRepository.checkPath(String, long) method accept path (not URL)
> either relative to repository location, or to repository root URL (in
> case path starts with '/').
> 
> So the code should be like that:
> 
> SVNURL dirUrl =
> SVNURL.parseURIEncoded("https://subversion.access.dev/svn/kennel/oms/branches/TRY_Kurt";);
> SVNURL fileUrl = dirUrl.appendPath(file.getName(), false);
> 
> SVNRepository repository = SVNRepositoryFactory.create(fileUrl);
> SVNNodeKind fileKind = repositoryCheckPath("" /* empty string */, -1);
> 
> if (fileKind == SVNNodeKind.NONE) {
>     commitClient.doImport(file, fileUrl, ...);
> }
> 
> 

You were right. This was the issue. Your code fixed my problem. Thanks.

-- 
View this message in context: 
http://old.nabble.com/SVNNodeKind-is-NONE-even-if-the-file-exists-tp32380511p32607052.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.


Reply via email to